X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/c2c98c325c080c171b752a605ce8cf7dd9f2ed26..e0cf523ebc5837a1bc23bec7e1917dbb75c8d747:/Entity/Session.php diff --git a/Entity/Session.php b/Entity/Session.php index f5f0ef5..fb0b8f3 100644 --- a/Entity/Session.php +++ b/Entity/Session.php @@ -113,11 +113,6 @@ class Session { */ private $application; - /** - * @var Dance - */ - private $dance; - /** * @var Location */ @@ -579,28 +574,6 @@ class Session { return $this->applications; } - /** - * 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 location * @@ -672,9 +645,9 @@ class Session { */ public function preUpdate(PreUpdateEventArgs $eventArgs) { //Check that we have a session instance - if (($user = $eventArgs->getEntity()) instanceof Session) { + if (($session = $eventArgs->getEntity()) instanceof Session) { //Set updated value - $user->setUpdated(new \DateTime('now')); + $session->setUpdated(new \DateTime('now')); } }