]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Application.php
Fix header comment
[airbundle] / Entity / Application.php
index 5d3120360342c6761cf51c76bca43fe7e2df1a60..4e94f204fe63f289d359f26d84187b9d033a1067 100644 (file)
@@ -238,7 +238,7 @@ class Application {
         */
        public function preUpdate(PreUpdateEventArgs $eventArgs) {
                //Check that we have an application instance
         */
        public function preUpdate(PreUpdateEventArgs $eventArgs) {
                //Check that we have an application instance
-               if (($application = $eventArgs->getEntity()) instanceof Application) {
+               if (($application = $eventArgs->getObject()) instanceof Application) {
                        //Set updated value
                        $application->setUpdated(new \DateTime('now'));
                }
                        //Set updated value
                        $application->setUpdated(new \DateTime('now'));
                }