File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ sortable (like :ref:`ULIDs <ulid>`). It's more efficient for database indexing
120120**UUID v7 ** (UNIX timestamp)
121121
122122Generates time-ordered UUIDs based on a high-resolution Unix Epoch timestamp
123- source (the number of milliseconds since midnight 1 Jan 1970 UTC, leap seconds excluded)
123+ source (the number of microseconds since midnight 1 Jan 1970 UTC, leap seconds excluded)
124124(`read the UUIDv7 spec <https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis#name-uuid-version-7 >`__).
125125It's recommended to use this version over UUIDv1 and UUIDv6 because it provides
126126better entropy (and a more strict chronological order of UUID generation)::
@@ -130,6 +130,10 @@ better entropy (and a more strict chronological order of UUID generation)::
130130 $uuid = Uuid::v7();
131131 // $uuid is an instance of Symfony\Component\Uid\UuidV7
132132
133+ .. versionadded :: 7.4
134+
135+ In Symfony 7.4, the precision was increased from milliseconds to microseconds.
136+
133137**UUID v8 ** (custom)
134138
135139Provides an RFC-compatible format intended for experimental or vendor-specific use cases
You can’t perform that action at this time.
0 commit comments