Add note about comparing datetime and object by reference
This commit is contained in:
parent
ecb13a87dc
commit
5ee8861350
1 changed files with 6 additions and 1 deletions
|
@ -176,7 +176,12 @@ built-in mapping types:
|
||||||
types! They are mapping types between 2 types.
|
types! They are mapping types between 2 types.
|
||||||
Additionally Mapping types are *case-sensitive*. For example, using
|
Additionally Mapping types are *case-sensitive*. For example, using
|
||||||
a DateTime column will NOT match the datetime type that ships with
|
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::
|
.. warning::
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue