Skip to content

Commit dc29127

Browse files
committed
Tweaks
1 parent de91877 commit dc29127

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

components/uid.rst

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ UUID objects created with the ``Uuid`` class can use the following methods
115115
Storing UUIDs in Databases
116116
~~~~~~~~~~~~~~~~~~~~~~~~~~
117117

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::
121120

122121
// src/Entity/Product.php
123122
namespace App\Entity;
@@ -137,10 +136,6 @@ special Doctrine types which convert to/from UUID objects automatically::
137136
// ...
138137
}
139138

140-
.. versionadded:: 5.2
141-
142-
The UuidBinary type has been removed in Symfony 5.2.
143-
144139
There's also a Doctrine generator to help autogenerate UUID values for the
145140
entity primary keys::
146141

@@ -165,7 +160,7 @@ entity primary keys::
165160

166161
.. versionadded:: 5.2
167162

168-
The UUID types and generators were introduced in Symfony 5.2.
163+
The UUID type and generators were introduced in Symfony 5.2.
169164

170165
When using built-in Doctrine repository methods (e.g. ``findOneBy()``), Doctrine
171166
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::
259254
Storing ULIDs in Databases
260255
~~~~~~~~~~~~~~~~~~~~~~~~~~
261256

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::
265259

266260
// src/Entity/Product.php
267261
namespace App\Entity;
@@ -281,10 +275,6 @@ special Doctrine types which convert to/from ULID objects automatically::
281275
// ...
282276
}
283277

284-
.. versionadded:: 5.2
285-
286-
The UlidBinary type has been removed in Symfony 5.2.
287-
288278
There's also a Doctrine generator to help autogenerate ULID values for the
289279
entity primary keys::
290280

@@ -308,7 +298,7 @@ entity primary keys::
308298

309299
.. versionadded:: 5.2
310300

311-
The ULID types and generator were introduced in Symfony 5.2.
301+
The ULID type and generator were introduced in Symfony 5.2.
312302

313303
When using built-in Doctrine repository methods (e.g. ``findOneBy()``), Doctrine
314304
knows how to convert these ULID types to build the SQL query

0 commit comments

Comments
 (0)