mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
On update, doctrine doesn't generate a changeset when the property changed is an entity #5578
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fabricekabongo on GitHub (Jun 17, 2017).
Scenario
I have a
Productentity and anAdvertentity.Advert 1 was linked to Product 1, I change it to be linked to Product 2.
Facts
The process calls
Doctrine\ORM\UnitOfWork::executeUpdatesand on line1060an Error is thrown:Catchable Fatal Error: Argument 3 passed to Doctrine\ORM\Event\PreUpdateEventArgs::__construct() must be of the type array, null given, called in /var/www/project/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 1060 and defined
because
$this->entityChangeSets[$oid]is null@Ocramius commented on GitHub (Jun 17, 2017):
Requires a test case
On Jun 17, 2017 11:38, "Fabrice Kabongo" notifications@github.com wrote:
@razbakov commented on GitHub (Sep 6, 2018):
Same problem as #7387