mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2726: EventSubscriber PreUpdate Error Bug? #3411
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 @doctrinebot on GitHub (Oct 6, 2013).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user nelfo:
Should this:
...result in this?
Catchable Fatal Error: Argument 3 passed to Doctrine\ORM\Event\PreUpdateEventArgs::**construct() must be an array, null given, called in /var/www/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 995 and defined in /var/www/vendor/doctrine/orm/lib/Doctrine/ORM/Event/PreUpdateEventArgs.php line 47
I'm just setting a time stamp for two updated values. Dumping the 3rd argument in PreUpdateEventArgs.php on line 47 reveals an array of changes. I'm not sure if this is a bug or if I'm performing this simple operation incorrectly.
@doctrinebot commented on GitHub (Oct 17, 2013):
Comment created by @ocramius:
Can you write an integration test around it? Looks like the changeset is removed in a particular edge case, but it's hard to figure it out without a test.
@doctrinebot commented on GitHub (Sep 29, 2014):
Comment created by florinutz:
here, solve it :P
@doctrinebot commented on GitHub (Oct 19, 2014):
Comment created by @ocramius:
Missing test case
@doctrinebot commented on GitHub (Oct 19, 2014):
Issue was closed with resolution "Incomplete"