File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -156,12 +156,12 @@ entity primary keys::
156
156
private $id;
157
157
158
158
// ...
159
-
159
+
160
160
public function getId(): ?Uuid
161
161
{
162
162
return $this->id;
163
163
}
164
-
164
+
165
165
// ...
166
166
}
167
167
@@ -211,9 +211,10 @@ are encoded as 26-character strings (vs 36-character UUIDs).
211
211
212
212
.. note ::
213
213
214
- If you generate more than one ULID during the same millisecond then the random
215
- portion is incremented by one bit in order to provide monotonicity for sorting.
216
- The random portion is **not ** random compared to the previous ULID in this case.
214
+ If you generate more than one ULID during the same millisecond in the
215
+ same process then the random portion is incremented by one bit in order
216
+ to provide monotonicity for sorting. The random portion is **not **
217
+ random compared to the previous ULID in this case.
217
218
218
219
Generating ULIDs
219
220
~~~~~~~~~~~~~~~~
@@ -292,7 +293,7 @@ There's also a Doctrine generator to help autogenerate ULID values for the
292
293
entity primary keys::
293
294
294
295
use Symfony\Bridge\Doctrine\IdGenerator\UlidGenerator;
295
- use Symfony\Component\Uid\Ulid;
296
+ use Symfony\Component\Uid\Ulid;
296
297
297
298
/**
298
299
* @ORM\Entity(repositoryClass="App\Repository\ProductRepository")
@@ -308,14 +309,14 @@ entity primary keys::
308
309
private $id;
309
310
310
311
// ...
311
-
312
+
312
313
public function getId(): ?Ulid
313
314
{
314
315
return $this->id;
315
316
}
316
-
317
+
317
318
// ...
318
-
319
+
319
320
}
320
321
321
322
.. versionadded :: 5.2
You can’t perform that action at this time.
0 commit comments