]> Raphaël G. Git Repositories - airbundle/commitdiff
Add premium as nullable
authorRaphaël Gertz <git@rapsys.eu>
Sat, 28 Aug 2021 05:07:09 +0000 (07:07 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 28 Aug 2021 05:07:09 +0000 (07:07 +0200)
Add preUpdate doctrine lifecycle callbacks

Resources/config/doctrine/Session.orm.yml

index 1367613b15fcb7bff6199d0fee85ae68d8b6f0ff..9631e932bcdb2d7dcb858d0d4b5b1814d87f589c 100644 (file)
@@ -20,6 +20,7 @@ Rapsys\AirBundle\Entity\Session:
             nullable: true
         premium:
             type: boolean
+            nullable: true
         rainfall:
             type: float
             nullable: true
@@ -87,3 +88,5 @@ Rapsys\AirBundle\Entity\Session:
 #        #XXX: tried for SessionRepository::findBestApplicationById(s4)
 #        location_application_locked_date:
 #            columns: [ location_id, application_id, locked, date ]
+    lifecycleCallbacks:
+        preUpdate: ['preUpdate']