X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/6f3158f30f33264488887f5a0c8e271cb7d17747..04441c5bddb7e62cf60aacbaf4146361d7907670:/Entity/Snippet.php diff --git a/Entity/Snippet.php b/Entity/Snippet.php index a764a66..fa5fe99 100644 --- a/Entity/Snippet.php +++ b/Entity/Snippet.php @@ -432,7 +432,7 @@ class Snippet { */ public function preUpdate(PreUpdateEventArgs $eventArgs) { //Check that we have an snippet instance - if (($snippet = $eventArgs->getEntity()) instanceof Snippet) { + if (($snippet = $eventArgs->getObject()) instanceof Snippet) { //Set updated value $snippet->setUpdated(new \DateTime('now')); }