From: Raphaƫl Gertz Date: Sat, 28 Aug 2021 05:07:09 +0000 (+0200) Subject: Add premium as nullable X-Git-Tag: 0.2.0~49 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/44a3b56b054637bc704b7541a4e3d38696b560e4?ds=inline Add premium as nullable Add preUpdate doctrine lifecycle callbacks --- 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']