1
0
mirror of synced 2024-12-14 07:06:04 +03:00

Add note about comparing datetime and object by reference

This commit is contained in:
Benjamin Eberlei 2011-08-06 19:12:42 +02:00
parent ecb13a87dc
commit 5ee8861350

View File

@ -176,7 +176,12 @@ built-in mapping types:
types! They are mapping types between 2 types.
Additionally Mapping types are *case-sensitive*. For example, using
a DateTime column will NOT match the datetime type that ships with
Doctrine 2.
Doctrine 2.
.. note::
DateTime and Object types are compared by reference, not by value. Doctrine updates this values
if the reference changes and therefore behaves as if these objects are immutable value objects.
.. warning::