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