From 2aece99eee79773867b883158938faa0a66ad00b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sat, 28 Aug 2021 05:48:36 +0200 Subject: [PATCH] Add dance doctrine config --- Resources/config/doctrine/Dance.orm.yml | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Resources/config/doctrine/Dance.orm.yml 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'] -- 2.41.1