summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
010e38c)
Add dance link on application
Fix variable name in preUpdate
+ /**
+ * @var Dance
+ */
+ private $dance;
+
+ /**
+ * 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;
+ }
+
*/
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 (($user = $eventArgs->getEntity()) instanceof Application) {
+ if (($application = $eventArgs->getEntity()) instanceof Application) {
- $user->setUpdated(new \DateTime('now'));
+ $application->setUpdated(new \DateTime('now'));
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have a location instance
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have a location instance
- if (($user = $eventArgs->getEntity()) instanceof Location) {
+ if (($location = $eventArgs->getEntity()) instanceof Location) {
- $user->setUpdated(new \DateTime('now'));
+ $location->setUpdated(new \DateTime('now'));
- /**
- * @var Dance
- */
- private $dance;
-
return $this->applications;
}
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;
- }
-
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have a session instance
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have a session instance
- if (($user = $eventArgs->getEntity()) instanceof Session) {
+ if (($session = $eventArgs->getEntity()) instanceof Session) {
- $user->setUpdated(new \DateTime('now'));
+ $session->setUpdated(new \DateTime('now'));
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have a slot instance
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have a slot instance
- if (($user = $eventArgs->getEntity()) instanceof Slot) {
+ if (($slot = $eventArgs->getEntity()) instanceof Slot) {
- $user->setUpdated(new \DateTime('now'));
+ $slot->setUpdated(new \DateTime('now'));