*/
private $id;
+ /**
+ * @var Dance
+ */
+ private $dance;
+
/**
* @var float
*/
return $this->id;
}
+ /**
+ * Set dance
+ *
+ * @param Dance $dance
+ *
+ * @return Session
+ */
+ public function setDance(Dance $dance): Session {
+ $this->dance = $dance;
+
+ return $this;
+ }
+
+ /**
+ * Get dance
+ *
+ * @return Dance
+ */
+ public function getDance(): Dance {
+ return $this->dance;
+ }
+
/**
* Set score
*
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have an application instance
- if (($user = $eventArgs->getEntity()) instanceof Application) {
+ if (($application = $eventArgs->getEntity()) instanceof Application) {
//Set updated value
- $user->setUpdated(new \DateTime('now'));
+ $application->setUpdated(new \DateTime('now'));
}
}
}