X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/3bb7706790b4f955cfbc412ee65c4a620c15d5b0..07ee75c0ded3f104345cf801bb6fbb1f0f9565a6:/Entity/Location.php?ds=sidebyside 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')); }