X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/f0ed7af138b95f31354f8d5a37cb4cd27b902a75..dca2abfc031c68f180052f935cc72ff3308f2111:/Entity/Application.php?ds=sidebyside diff --git a/Entity/Application.php b/Entity/Application.php index 5d31203..4e94f20 100644 --- a/Entity/Application.php +++ b/Entity/Application.php @@ -238,7 +238,7 @@ class Application { */ public function preUpdate(PreUpdateEventArgs $eventArgs) { //Check that we have an application instance - if (($application = $eventArgs->getEntity()) instanceof Application) { + if (($application = $eventArgs->getObject()) instanceof Application) { //Set updated value $application->setUpdated(new \DateTime('now')); }