@@ -228,50 +228,12 @@ and a custom ``Doctrine\ORM\Mapping\TypedFieldMapper`` implementation.
228228Doctrine Mapping Types
229229----------------------
230230
231- The ``type `` option used in the ``@Column `` accepts any of the existing
232- Doctrine types or even your own custom types. A Doctrine type defines
231+ The ``type `` option used in the ``@Column `` accepts any of the
232+ `existing Doctrine DBAL types <https://docs.doctrine-project.org/projects/doctrine-dbal/en/stable/reference/types.html#reference >`_
233+ or :doc: `your own custom mapping types
234+ <../cookbook/custom-mapping-types>`. A Doctrine type defines
233235the conversion between PHP and SQL types, independent from the database vendor
234- you are using. All Mapping Types that ship with Doctrine are fully portable
235- between the supported database systems.
236-
237- As an example, the Doctrine Mapping Type ``string `` defines the
238- mapping from a PHP string to a SQL VARCHAR (or VARCHAR2 etc.
239- depending on the RDBMS brand). Here is a quick overview of the
240- built-in mapping types:
241-
242- - ``string ``: Type that maps a SQL VARCHAR to a PHP string.
243- - ``integer ``: Type that maps a SQL INT to a PHP integer.
244- - ``smallint ``: Type that maps a database SMALLINT to a PHP
245- integer.
246- - ``bigint ``: Type that maps a database BIGINT to a PHP string.
247- - ``boolean ``: Type that maps a SQL boolean or equivalent (TINYINT) to a PHP boolean.
248- - ``decimal ``: Type that maps a SQL DECIMAL to a PHP string.
249- - ``date ``: Type that maps a SQL DATETIME to a PHP DateTime
250- object.
251- - ``time ``: Type that maps a SQL TIME to a PHP DateTime object.
252- - ``datetime ``: Type that maps a SQL DATETIME/TIMESTAMP to a PHP
253- DateTime object.
254- - ``datetimetz ``: Type that maps a SQL DATETIME/TIMESTAMP to a PHP
255- DateTime object with timezone.
256- - ``text ``: Type that maps a SQL CLOB to a PHP string.
257- - ``object ``: Type that maps a SQL CLOB to a PHP object using
258- ``serialize() `` and ``unserialize() ``
259- - ``array ``: Type that maps a SQL CLOB to a PHP array using
260- ``serialize() `` and ``unserialize() ``
261- - ``simple_array ``: Type that maps a SQL CLOB to a PHP array using
262- ``implode() `` and ``explode() ``, with a comma as delimiter. *IMPORTANT *
263- Only use this type if you are sure that your values cannot contain a ",".
264- - ``json_array ``: Type that maps a SQL CLOB to a PHP array using
265- ``json_encode() `` and ``json_decode() ``
266- - ``float ``: Type that maps a SQL Float (Double Precision) to a
267- PHP double. *IMPORTANT *: Works only with locale settings that use
268- decimal points as separator.
269- - ``guid ``: Type that maps a database GUID/UUID to a PHP string. Defaults to
270- varchar but uses a specific type if the platform supports it.
271- - ``blob ``: Type that maps a SQL BLOB to a PHP resource stream
272-
273- A cookbook article shows how to define :doc: `your own custom mapping types
274- <../cookbook/custom-mapping-types>`.
236+ you are using.
275237
276238.. note ::
277239
0 commit comments