From 4175739888fb291f20ef267af9a763cebb22ac36 Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Sat, 13 Apr 2024 16:53:59 +0200 Subject: [PATCH] [NodeBundle] Fix incorrect event type in doctrine listener --- .../NodeBundle/EventListener/NodeTranslationListener.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Kunstmaan/NodeBundle/EventListener/NodeTranslationListener.php b/src/Kunstmaan/NodeBundle/EventListener/NodeTranslationListener.php index 0cd804a150..28b2a60f16 100644 --- a/src/Kunstmaan/NodeBundle/EventListener/NodeTranslationListener.php +++ b/src/Kunstmaan/NodeBundle/EventListener/NodeTranslationListener.php @@ -5,6 +5,7 @@ use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Event\OnFlushEventArgs; use Doctrine\ORM\Event\PrePersistEventArgs; +use Doctrine\ORM\Event\PreUpdateEventArgs; use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\Persistence\Mapping\MappingException; use Kunstmaan\AdminBundle\FlashMessages\FlashTypes; @@ -62,7 +63,7 @@ public function prePersist(PrePersistEventArgs $args) } } - public function preUpdate(PrePersistEventArgs $args) + public function preUpdate(PreUpdateEventArgs $args) { $entity = $args->getObject();