X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/c2c98c325c080c171b752a605ce8cf7dd9f2ed26..e075a8cf055de6a79df2fae0084bf0830541a075:/Entity/Application.php?ds=sidebyside diff --git a/Entity/Application.php b/Entity/Application.php index b54b1e2..48e6992 100644 --- a/Entity/Application.php +++ b/Entity/Application.php @@ -22,6 +22,11 @@ class Application { */ private $id; + /** + * @var Dance + */ + private $dance; + /** * @var float */ @@ -69,6 +74,28 @@ class Application { 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 * @@ -206,9 +233,9 @@ class Application { */ 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')); } } }