We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95f7fc9 + 5130906 commit c429fdfCopy full SHA for c429fdf
components/uid.rst
@@ -241,6 +241,13 @@ following methods to create a ``Ulid`` object from it::
241
$ulid = Ulid::fromBase58('1BKocMc5BnrVcuq2ti4Eqm');
242
$ulid = Ulid::fromRfc4122('0171069d-593d-97d3-8b3e-23d06de5b308');
243
244
+There's also a special ``NilUlid`` class to represent ULID ``null`` values::
245
+
246
+ use Symfony\Component\Uid\NilUlid;
247
248
+ $ulid = new NilUlid();
249
+ // equivalent to $ulid = new Ulid('00000000000000000000000000');
250
251
Converting ULIDs
252
~~~~~~~~~~~~~~~~
253
0 commit comments