到目前为止,从以下几行
$records = $this->entityManager->getRepository(Translation::class)->findBy([], ['id' => 'DESC'], 1, 0);
$uuid = $records[0]->getId();
我可以得到以下几行。
Ramsey\Uuid\Uuid {#131
#codec: Ramsey\Uuid\Codec\StringCodec {#86
-builder: Ramsey\Uuid\Builder\DefaultUuidBuilder {#383
-converter: Ramsey\Uuid\Converter\Number\DegradedNumberConverter {#390}
}
}
#fields: array:6 [
"time_low" => "1483fc71"
"time_mid" => "66e9"
"time_hi_and_version" => "4e21"
"clock_seq_hi_and_reserved" => "b9"
"clock_seq_low" => "50"
"node" => "c6e9e6405428"
]
#converter: Ramsey\Uuid\Converter\Number\DegradedNumberConverter {#390}
uuid: "1483fc71-66e9"
}
我怎样才能提取uuid?
跃然一笑
梵蒂冈之花