X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/6837354b99f6ba9815f43b81f501e6b876008506..9f8c7e7014e3dfd8823926a3fc21c1fb2fe60de5:/Entity/Country.php diff --git a/Entity/Country.php b/Entity/Country.php index 07124c5..5674007 100644 --- a/Entity/Country.php +++ b/Entity/Country.php @@ -227,7 +227,7 @@ class Country { */ public function preUpdate(PreUpdateEventArgs $eventArgs) { //Check that we have an country instance - if (($country = $eventArgs->getEntity()) instanceof Country) { + if (($country = $eventArgs->getObject()) instanceof Country) { //Set updated value $country->setUpdated(new \DateTime('now')); }