From: Raphaƫl Gertz Date: Sat, 28 Aug 2021 03:48:36 +0000 (+0200) Subject: Add dance doctrine config X-Git-Tag: 0.2.0~62 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/2aece99eee79773867b883158938faa0a66ad00b Add dance doctrine config --- diff --git a/Resources/config/doctrine/Dance.orm.yml b/Resources/config/doctrine/Dance.orm.yml new file mode 100644 index 0000000..6427d1a --- /dev/null +++ b/Resources/config/doctrine/Dance.orm.yml @@ -0,0 +1,29 @@ +Rapsys\AirBundle\Entity\Dance: + type: entity + #repositoryClass: Rapsys\AirBundle\Repository\DanceRepository + table: dances + id: + id: + type: integer + generator: + strategy: AUTO + options: + unsigned: true + fields: + title: + type: string + length: 32 + created: + type: datetime + updated: + type: datetime + oneToMany: + applications: + targetEntity: Rapsys\AirBundle\Entity\Application + mappedBy: dance + manyToMany: + users: + targetEntity: Rapsys\AirBundle\Entity\User + mappedBy: dances + lifecycleCallbacks: + preUpdate: ['preUpdate']