@@ -115,9 +115,8 @@ UUID objects created with the ``Uuid`` class can use the following methods
115
115
Storing UUIDs in Databases
116
116
~~~~~~~~~~~~~~~~~~~~~~~~~~
117
117
118
- You can store UUID values as any other regular string values in the database.
119
- However, if you :doc: `use Doctrine </doctrine >`, it's more convenient to use the
120
- special Doctrine types which convert to/from UUID objects automatically::
118
+ If you :doc: `use Doctrine </doctrine >`, consider using the ``uuid `` Doctrine
119
+ type, which converts to/from UUID objects automatically::
121
120
122
121
// src/Entity/Product.php
123
122
namespace App\Entity;
@@ -137,10 +136,6 @@ special Doctrine types which convert to/from UUID objects automatically::
137
136
// ...
138
137
}
139
138
140
- .. versionadded :: 5.2
141
-
142
- The UuidBinary type has been removed in Symfony 5.2.
143
-
144
139
There's also a Doctrine generator to help autogenerate UUID values for the
145
140
entity primary keys::
146
141
@@ -165,7 +160,7 @@ entity primary keys::
165
160
166
161
.. versionadded :: 5.2
167
162
168
- The UUID types and generators were introduced in Symfony 5.2.
163
+ The UUID type and generators were introduced in Symfony 5.2.
169
164
170
165
When using built-in Doctrine repository methods (e.g. ``findOneBy() ``), Doctrine
171
166
knows how to convert these UUID types to build the SQL query
@@ -259,9 +254,8 @@ ULID objects created with the ``Ulid`` class can use the following methods::
259
254
Storing ULIDs in Databases
260
255
~~~~~~~~~~~~~~~~~~~~~~~~~~
261
256
262
- You can store ULID values as any other regular string values in the database.
263
- However, if you :doc: `use Doctrine </doctrine >`, it's more convenient to use the
264
- special Doctrine types which convert to/from ULID objects automatically::
257
+ If you :doc: `use Doctrine </doctrine >`, consider using the ``ulid `` Doctrine
258
+ type, which converts to/from ULID objects automatically::
265
259
266
260
// src/Entity/Product.php
267
261
namespace App\Entity;
@@ -281,10 +275,6 @@ special Doctrine types which convert to/from ULID objects automatically::
281
275
// ...
282
276
}
283
277
284
- .. versionadded :: 5.2
285
-
286
- The UlidBinary type has been removed in Symfony 5.2.
287
-
288
278
There's also a Doctrine generator to help autogenerate ULID values for the
289
279
entity primary keys::
290
280
@@ -308,7 +298,7 @@ entity primary keys::
308
298
309
299
.. versionadded :: 5.2
310
300
311
- The ULID types and generator were introduced in Symfony 5.2.
301
+ The ULID type and generator were introduced in Symfony 5.2.
312
302
313
303
When using built-in Doctrine repository methods (e.g. ``findOneBy() ``), Doctrine
314
304
knows how to convert these ULID types to build the SQL query
0 commit comments