From cf23b2a9c6b81bbf5fd5e5224ef0c6c6dd7ac592 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 14 Oct 2020 04:15:57 +0200 Subject: [PATCH] Rename end field in length Add todo notes about score field to add --- Resources/config/doctrine/Application.orm.yml | 3 +++ Resources/config/doctrine/Session.orm.yml | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Resources/config/doctrine/Application.orm.yml b/Resources/config/doctrine/Application.orm.yml index aaf461f..e65953d 100644 --- a/Resources/config/doctrine/Application.orm.yml +++ b/Resources/config/doctrine/Application.orm.yml @@ -10,6 +10,9 @@ Rapsys\AirBundle\Entity\Application: options: unsigned: true fields: +#The score computed at attribution time, the sum of all session score divided by proximity in days (1 for sun-thu, 2 for fri-sat, +1 for high temperature, *-1 for bad weather)/abs(DAY(attribution date - session.date)) +# score: +# type: float created: type: datetime updated: diff --git a/Resources/config/doctrine/Session.orm.yml b/Resources/config/doctrine/Session.orm.yml index 9c89adb..68c6116 100644 --- a/Resources/config/doctrine/Session.orm.yml +++ b/Resources/config/doctrine/Session.orm.yml @@ -15,9 +15,13 @@ Rapsys\AirBundle\Entity\Session: begin: type: time nullable: true - end: + length: type: time nullable: true +#The day score, 1 for sun-thu, 2 for fri-sat, +1 for high temperature, *-1 for bad weather +# score: +# type: smallint +# nullable: true created: type: datetime updated: -- 2.41.1