X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/f0ed7af138b95f31354f8d5a37cb4cd27b902a75..7e8ef252c23703363c351b23ff1d1ce9fac80ce5:/Entity/Application.php 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')); }