* Constructor
         */
        public function __construct() {
+               //Set defaults
+               $this->score = null;
+               $this->canceled = null;
+               $this->created = new \DateTime('now');
+               $this->updated = new \DateTime('now');
                $this->session = null;
                $this->user = null;
        }
         *
         * @param Dance $dance
         *
-        * @return Session
+        * @return Application
         */
-       public function setDance(Dance $dance): Session {
+       public function setDance(Dance $dance): Application {
                $this->dance = $dance;
 
                return $this;
         */
        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'));
                }