@@ -115,9 +115,8 @@ UUID objects created with the ``Uuid`` class can use the following methods
115115Storing UUIDs in Databases
116116~~~~~~~~~~~~~~~~~~~~~~~~~~
117117
118- You can store UUID values as any other regular string/binary 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::
121120
122121 // src/Entity/Product.php
123122 namespace App\Entity;
@@ -134,11 +133,6 @@ special Doctrine types which convert to/from UUID objects automatically::
134133 */
135134 private $someProperty;
136135
137- /**
138- * @ORM\Column(type="uuid_binary")
139- */
140- private $anotherProperty;
141-
142136 // ...
143137 }
144138
@@ -166,7 +160,7 @@ entity primary keys::
166160
167161.. versionadded :: 5.2
168162
169- The UUID types and generators were introduced in Symfony 5.2.
163+ The UUID type and generators were introduced in Symfony 5.2.
170164
171165When using built-in Doctrine repository methods (e.g. ``findOneBy() ``), Doctrine
172166knows how to convert these UUID types to build the SQL query
@@ -260,9 +254,8 @@ ULID objects created with the ``Ulid`` class can use the following methods::
260254Storing ULIDs in Databases
261255~~~~~~~~~~~~~~~~~~~~~~~~~~
262256
263- You can store ULID values as any other regular string/binary values in the database.
264- However, if you :doc: `use Doctrine </doctrine >`, it's more convenient to use the
265- 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::
266259
267260 // src/Entity/Product.php
268261 namespace App\Entity;
@@ -279,11 +272,6 @@ special Doctrine types which convert to/from ULID objects automatically::
279272 */
280273 private $someProperty;
281274
282- /**
283- * @ORM\Column(type="ulid_binary")
284- */
285- private $anotherProperty;
286-
287275 // ...
288276 }
289277
@@ -310,7 +298,7 @@ entity primary keys::
310298
311299.. versionadded :: 5.2
312300
313- The ULID types and generator were introduced in Symfony 5.2.
301+ The ULID type and generator were introduced in Symfony 5.2.
314302
315303When using built-in Doctrine repository methods (e.g. ``findOneBy() ``), Doctrine
316304knows how to convert these ULID types to build the SQL query
0 commit comments