X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/cf23b2a9c6b81bbf5fd5e5224ef0c6c6dd7ac592..0f2420fb0c65c3d2591002d4c219829fb63b8fba:/Resources/config/doctrine/Application.orm.yml diff --git a/Resources/config/doctrine/Application.orm.yml b/Resources/config/doctrine/Application.orm.yml index e65953d..38de0fe 100644 --- a/Resources/config/doctrine/Application.orm.yml +++ b/Resources/config/doctrine/Application.orm.yml @@ -10,21 +10,35 @@ 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 + score: + type: float + nullable: true + canceled: + type: datetime + nullable: true created: type: datetime updated: type: datetime manyToOne: + dance: + targetEntity: Rapsys\AirBundle\Entity\Dance + inversedBy: applications session: targetEntity: Rapsys\AirBundle\Entity\Session inversedBy: applications user: targetEntity: Rapsys\AirBundle\Entity\User inversedBy: applications - oneToMany: - votes: - targetEntity: Rapsys\AirBundle\Entity\Vote - mappedBy: application + lifecycleCallbacks: + preUpdate: ['preUpdate'] +# oneToMany: +# votes: +# targetEntity: Rapsys\AirBundle\Entity\Vote +# mappedBy: application +# indexes: +# #XXX: used in SessionRepository::XXX +# id_user: +# columns: [ id, user_id ] +# id_user_canceled: +# columns: [ id, user_id, canceled ]