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