File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
contributing/code_of_conduct Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 31
31
32
32
* **Michelle Sanver **
33
33
34
- * *E-mail *: hello [at] michellesanver.com
34
+ * *E-mail *: michelle [at] liip.ch
35
35
* *Twitter *: `@michellesanver <https://twitter.com/michellesanver >`_
36
36
* *SymfonyConnect *: `michellesanver <https://connect.symfony.com/profile/michellesanver >`_
37
37
Original file line number Diff line number Diff line change @@ -233,13 +233,13 @@ define a listener for the ``postUpdate`` Doctrine event::
233
233
namespace App\EventListener;
234
234
235
235
use App\Entity\User;
236
- use Doctrine\ORM\ Event\PreUpdateEventArgs ;
236
+ use Doctrine\Common\Persistence\ Event\LifecycleEventArgs ;
237
237
238
238
class UserChangedNotifier
239
239
{
240
240
// the entity listener methods receive two arguments:
241
241
// the entity instance and the lifecycle event
242
- public function postUpdate(User $user, PreUpdateEventArgs $event)
242
+ public function postUpdate(User $user, LifecycleEventArgs $event)
243
243
{
244
244
// ... do something to notify the changes
245
245
}
You can’t perform that action at this time.
0 commit comments