X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/07b25e58f0338bf060b6b490fa60acf087553132..3f4eae21e72bf3261fa8b939a50408de6b119f74:/Entity/Snippet.php?ds=sidebyside 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')); }