From 5e3f27a34885a44e4e137e515a997a1dd375587a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sat, 28 Aug 2021 07:07:09 +0200 Subject: [PATCH] Add premium as nullable Add preUpdate doctrine lifecycle callbacks --- Resources/config/doctrine/Session.orm.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Resources/config/doctrine/Session.orm.yml b/Resources/config/doctrine/Session.orm.yml index 1367613..9631e93 100644 --- a/Resources/config/doctrine/Session.orm.yml +++ b/Resources/config/doctrine/Session.orm.yml @@ -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'] -- 2.41.0