Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions components/uid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,17 @@ following methods to create a ``Ulid`` object from it::
The ``fromBinary()``, ``fromBase32()``, ``fromBase58()`` and ``fromRfc4122()``
methods were introduced in Symfony 5.3.

There's also a special ``NilUlid`` class to represent ULID ``null`` values::

use Symfony\Component\Uid\NilUlid;

$ulid = new NilUlid();
// equivalent to $ulid = new Ulid('00000000000000000000000000');

.. versionadded:: 5.4

The ``NilUlid`` class was introduced in Symfony 5.4.

Converting ULIDs
~~~~~~~~~~~~~~~~

Expand Down