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