From 10b801dec0e448097a483a925081e3eb551ddebc Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Mon, 6 Oct 2014 14:57:03 +0200 Subject: [PATCH] Adding note about a minor BC break: d2 does not call `__clone` on new objects anymore. --- UPGRADE.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UPGRADE.md b/UPGRADE.md index e266c7bf0..43e7ae92c 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -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