@@ -300,50 +300,12 @@ and a custom ``Doctrine\ORM\Mapping\TypedFieldMapper`` implementation.
300300Doctrine Mapping Types
301301----------------------
302302
303- The ``type `` option used in the ``@Column `` accepts any of the existing
304- Doctrine types or even your own custom types. A Doctrine type defines
303+ The ``type `` option used in the ``@Column `` accepts any of the
304+ `existing Doctrine DBAL types <https://docs.doctrine-project.org/projects/doctrine-dbal/en/stable/reference/types.html#reference >`_
305+ or :doc: `your own custom mapping types
306+ <../cookbook/custom-mapping-types>`. A Doctrine type defines
305307the conversion between PHP and SQL types, independent from the database vendor
306- you are using. All Mapping Types that ship with Doctrine are fully portable
307- between the supported database systems.
308-
309- As an example, the Doctrine Mapping Type ``string `` defines the
310- mapping from a PHP string to a SQL VARCHAR (or VARCHAR2 etc.
311- depending on the RDBMS brand). Here is a quick overview of the
312- built-in mapping types:
313-
314- - ``string ``: Type that maps a SQL VARCHAR to a PHP string.
315- - ``integer ``: Type that maps a SQL INT to a PHP integer.
316- - ``smallint ``: Type that maps a database SMALLINT to a PHP
317- integer.
318- - ``bigint ``: Type that maps a database BIGINT to a PHP string.
319- - ``boolean ``: Type that maps a SQL boolean or equivalent (TINYINT) to a PHP boolean.
320- - ``decimal ``: Type that maps a SQL DECIMAL to a PHP string.
321- - ``date ``: Type that maps a SQL DATETIME to a PHP DateTime
322- object.
323- - ``time ``: Type that maps a SQL TIME to a PHP DateTime object.
324- - ``datetime ``: Type that maps a SQL DATETIME/TIMESTAMP to a PHP
325- DateTime object.
326- - ``datetimetz ``: Type that maps a SQL DATETIME/TIMESTAMP to a PHP
327- DateTime object with timezone.
328- - ``text ``: Type that maps a SQL CLOB to a PHP string.
329- - ``object ``: Type that maps a SQL CLOB to a PHP object using
330- ``serialize() `` and ``unserialize() ``
331- - ``array ``: Type that maps a SQL CLOB to a PHP array using
332- ``serialize() `` and ``unserialize() ``
333- - ``simple_array ``: Type that maps a SQL CLOB to a PHP array using
334- ``implode() `` and ``explode() ``, with a comma as delimiter. *IMPORTANT *
335- Only use this type if you are sure that your values cannot contain a ",".
336- - ``json_array ``: Type that maps a SQL CLOB to a PHP array using
337- ``json_encode() `` and ``json_decode() ``
338- - ``float ``: Type that maps a SQL Float (Double Precision) to a
339- PHP double. *IMPORTANT *: Works only with locale settings that use
340- decimal points as separator.
341- - ``guid ``: Type that maps a database GUID/UUID to a PHP string. Defaults to
342- varchar but uses a specific type if the platform supports it.
343- - ``blob ``: Type that maps a SQL BLOB to a PHP resource stream
344-
345- A cookbook article shows how to define :doc: `your own custom mapping types
346- <../cookbook/custom-mapping-types>`.
308+ you are using.
347309
348310.. note ::
349311
0 commit comments