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
120
120
**UUID v7 ** (UNIX timestamp)
121
121
122
122
Generates 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)
124
124
(`read the UUIDv7 spec <https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis#name-uuid-version-7 >`__).
125
125
It's recommended to use this version over UUIDv1 and UUIDv6 because it provides
126
126
better 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)::
130
130
$uuid = Uuid::v7();
131
131
// $uuid is an instance of Symfony\Component\Uid\UuidV7
132
132
133
+ .. versionadded :: 7.4
134
+
135
+ In Symfony 7.4, the precision was increased from milliseconds to microseconds.
136
+
133
137
**UUID v8 ** (custom)
134
138
135
139
Provides an RFC-compatible format intended for experimental or vendor-specific use cases
You can’t perform that action at this time.
0 commit comments