From ff3a2b58b1a81167ed8b771f29466de3542ee141 Mon Sep 17 00:00:00 2001 From: Milan Pavkovic Date: Wed, 5 Aug 2020 18:30:28 +0200 Subject: [PATCH] Remove reference to non-existing fromBinary method --- components/uid.rst | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/components/uid.rst b/components/uid.rst index f2fcd074533..c8eee0ece94 100644 --- a/components/uid.rst +++ b/components/uid.rst @@ -62,15 +62,10 @@ to create each type of UUID:: If your UUID is generated by another system, use the ``fromString()`` method to create an object and make use of the utilities available for Symfony UUIDs:: - // this value is generated somewhere else + // this value is generated somewhere else (can also be in binary format) $uuidValue = 'd9e7a184-5d5b-11ea-a62a-3499710062d0'; $uuid = Uuid::fromString($uuidValue); -If your UUIDs are generated in binary format, use the ``fromBinary()`` method -to create the objects for them:: - - $uuid = Uuid::fromBinary($uuidBinaryContents); - Converting UUIDs ~~~~~~~~~~~~~~~~ @@ -140,15 +135,10 @@ Instantiate the ``Ulid`` class to generate a random ULID value:: If your ULID is generated by another system, use the ``fromString()`` method to create an object and make use of the utilities available for Symfony ULIDs:: - // this value is generated somewhere else + // this value is generated somewhere else (can also be in binary format) $ulidValue = '01E439TP9XJZ9RPFH3T1PYBCR8'; $ulid = Ulid::fromString($ulidValue); -If your ULIDs are generated in binary format, use the ``fromBinary()`` method -to create the objects for them:: - - $ulid = Ulid::fromBinary($ulidBinaryContents); - Converting ULIDs ~~~~~~~~~~~~~~~~