]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Country.php
Add default values to class member variables
[airbundle] / Entity / Country.php
index 07124c598b3d0d9c8d0f752520887cfd97b27719..5674007e439c8c008037cf57491f54c3ef7120d6 100644 (file)
@@ -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'));
                }