Add dance doctrine config
authorRaphaël Gertz <git@rapsys.eu>
Sat, 28 Aug 2021 03:48:36 +0000 (05:48 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 28 Aug 2021 03:48:36 +0000 (05:48 +0200)
Resources/config/doctrine/Dance.orm.yml [new file with mode: 0644]

diff --git a/Resources/config/doctrine/Dance.orm.yml b/Resources/config/doctrine/Dance.orm.yml
new file mode 100644 (file)
index 0000000..6427d1a
--- /dev/null
@@ -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']