]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Entity/Civility.php
Rename user bundle alias
[userbundle] / Entity / Civility.php
index 9ec56e9053f16b299b72772195313401725fbb54..ea8b95b1a0ec1c3ed5c6c0c884b6aea759c2fd6b 100644 (file)
@@ -169,7 +169,7 @@ class Civility {
         */
        public function preUpdate(PreUpdateEventArgs $eventArgs) {
                //Check that we have a civility instance
-               if (($user = $eventArgs->getEntity()) instanceof Civility) {
+               if (($user = $eventArgs->getObject()) instanceof Civility) {
                        //Set updated value
                        $user->setUpdated(new \DateTime('now'));
                }