X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/f110b8ba20232e0ceeb67390f8e672431868d32d..0fef6d04b13ead8ded7ce2bb73b617f5409890b9:/Resources/config/doctrine/Application.orm.yml diff --git a/Resources/config/doctrine/Application.orm.yml b/Resources/config/doctrine/Application.orm.yml index aaf461f..38de0fe 100644 --- a/Resources/config/doctrine/Application.orm.yml +++ b/Resources/config/doctrine/Application.orm.yml @@ -10,18 +10,35 @@ Rapsys\AirBundle\Entity\Application: options: unsigned: true fields: + 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 ]