Skip to content

Commit

Permalink
Merge pull request #3400 from acrobat/fix-doctrine-event-class
Browse files Browse the repository at this point in the history
[NodeBundle] Fix incorrect event type in doctrine listener
  • Loading branch information
acrobat authored Apr 13, 2024
2 parents 2551a68 + 4175739 commit 8822690
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -62,7 +63,7 @@ public function prePersist(PrePersistEventArgs $args)
}
}

public function preUpdate(PrePersistEventArgs $args)
public function preUpdate(PreUpdateEventArgs $args)
{
$entity = $args->getObject();

Expand Down

0 comments on commit 8822690

Please sign in to comment.