X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/3bb7706790b4f955cfbc412ee65c4a620c15d5b0..9f8c7e7014e3dfd8823926a3fc21c1fb2fe60de5:/Entity/Location.php?ds=inline diff --git a/Entity/Location.php b/Entity/Location.php index 73b07f7..85283df 100644 --- a/Entity/Location.php +++ b/Entity/Location.php @@ -468,7 +468,7 @@ class Location { */ public function preUpdate(PreUpdateEventArgs $eventArgs) { //Check that we have a location instance - if (($location = $eventArgs->getEntity()) instanceof Location) { + if (($location = $eventArgs->getObject()) instanceof Location) { //Set updated value $location->setUpdated(new \DateTime('now')); }