1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Adding note about a minor BC break: d2 does not call __clone on new objects anymore.

This commit is contained in:
Marco Pivetta 2014-10-06 14:57:03 +02:00
parent 0bff6aadbc
commit 10b801dec0

View File

@ -65,6 +65,11 @@ This in fact is really a minor BC BREAK and should not have any affect on databa
other than SQL Server because it is the only one that supports and therefore cares about
``LockMode::NONE``. It's really just a FIX for SQL Server environments using ORM.
## Minor BC BREAK: `__clone` method not called anymore when entities are instantiated via metadata API
As of PHP 5.6, instantiation of new entities is deferred to the
[`doctrine/instantiator`](https://github.com/doctrine/instantiator) library, which will avoid calling `__clone`
or any public API on instantiated objects.
# Upgrade to 2.4