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();