You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #12532 [Doctrine] Fix wrong event class for entity listener in example (sadikoff)
This PR was submitted for the master branch but it was merged into the 4.3 branch instead (closes#12532).
Discussion
----------
[Doctrine] Fix wrong event class for entity listener in example
Using class `PreUpdateEventArgs` in code example causes an exception:
>Argument 2 passed to App\EventListener\UserChangedNotifier::postUpdate() must be an instance of Doctrine\ORM\Event\PreUpdateEventArgs, instance of Doctrine\ORM\Event\LifecycleEventArgs given, called in .../vendor/doctrine/orm/lib/Doctrine/ORM/Event/ListenersInvoker.php on line 112
<!--
If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/roadmap for the list of maintained branches).
If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `master` for features of unreleased versions).
-->
Commits
-------
c5be930 Fix Doctrine Entity Listeners event class
0 commit comments