From 2fdc2cfcc1f85741f3ece95d6308c8a128662703 Mon Sep 17 00:00:00 2001 From: Klaus Silveira Date: Mon, 19 Aug 2013 19:37:27 -0300 Subject: [PATCH 1/3] Updating Doctrine field types --- book/doctrine.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/book/doctrine.rst b/book/doctrine.rst index a91c3368f7c..3f48c6b6f71 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -1418,12 +1418,17 @@ using. The following types are supported in Doctrine: * ``date`` * ``time`` * ``datetime`` + * ``datetimetz`` * **Other Types** * ``boolean`` * ``object`` (serialized and stored in a ``CLOB`` field) * ``array`` (serialized and stored in a ``CLOB`` field) + * ``simple_array`` (serialized using implode() and explode(), with a comma as delimiter, and stored in a ``CLOB`` field) + * ``json_array`` (serialized using json_encode() and json_decode(), and stored in a ``CLOB`` field) + * ``blob`` (mapped to a resource stream) + * ``guid`` For more information, see Doctrine's `Mapping Types documentation`_. From 965d4f6d1e1ea60ef41b23d66349ce847b278a9c Mon Sep 17 00:00:00 2001 From: Klaus Silveira Date: Tue, 20 Aug 2013 11:08:26 -0300 Subject: [PATCH 2/3] Adding phpfunction as mentioned by @WouterJ --- book/doctrine.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/doctrine.rst b/book/doctrine.rst index 3f48c6b6f71..7881528a0a1 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -1425,8 +1425,8 @@ using. The following types are supported in Doctrine: * ``boolean`` * ``object`` (serialized and stored in a ``CLOB`` field) * ``array`` (serialized and stored in a ``CLOB`` field) - * ``simple_array`` (serialized using implode() and explode(), with a comma as delimiter, and stored in a ``CLOB`` field) - * ``json_array`` (serialized using json_encode() and json_decode(), and stored in a ``CLOB`` field) + * ``simple_array`` (serialized using :phpfunction:`implode()` and :phpfunction:`explode()`, with a comma as delimiter, and stored in a ``CLOB`` field) + * ``json_array`` (serialized using :phpfunction:`json_encode()` and :phpfunction:`json_decode()`, and stored in a ``CLOB`` field) * ``blob`` (mapped to a resource stream) * ``guid`` From d0932cad3a8305006763201663e07e84fac4fe18 Mon Sep 17 00:00:00 2001 From: Klaus Silveira Date: Tue, 20 Aug 2013 16:33:08 -0300 Subject: [PATCH 3/3] Wrapping up lines --- book/doctrine.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/book/doctrine.rst b/book/doctrine.rst index 7881528a0a1..facd8c1e2d1 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -1425,8 +1425,10 @@ using. The following types are supported in Doctrine: * ``boolean`` * ``object`` (serialized and stored in a ``CLOB`` field) * ``array`` (serialized and stored in a ``CLOB`` field) - * ``simple_array`` (serialized using :phpfunction:`implode()` and :phpfunction:`explode()`, with a comma as delimiter, and stored in a ``CLOB`` field) - * ``json_array`` (serialized using :phpfunction:`json_encode()` and :phpfunction:`json_decode()`, and stored in a ``CLOB`` field) + * ``simple_array`` (serialized using :phpfunction:`implode()` and :phpfunction:`explode()`, + with a comma as delimiter, and stored in a ``CLOB`` field) + * ``json_array`` (serialized using :phpfunction:`json_encode()` and :phpfunction:`json_decode()`, + and stored in a ``CLOB`` field) * ``blob`` (mapped to a resource stream) * ``guid``