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