Add dance link
authorRaphaël Gertz <git@rapsys.eu>
Sat, 28 Aug 2021 04:54:47 +0000 (06:54 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 28 Aug 2021 04:54:47 +0000 (06:54 +0200)
Add preUpdate doctrine lifecycle callbacks

Resources/config/doctrine/Application.orm.yml

index e52cc6ea3926752c8f386148d13b97e673e2e3e4..38de0fea3353d26dd3f551551bd82b91e8fe7da0 100644 (file)
@@ -21,12 +21,17 @@ Rapsys\AirBundle\Entity\Application:
         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
+    lifecycleCallbacks:
+        preUpdate: ['preUpdate']
 #    oneToMany:
 #        votes:
 #            targetEntity: Rapsys\AirBundle\Entity\Vote