]> Raphaël G. Git Repositories - airbundle/commitdiff
Replace deprecated datetime by datetime_immutable
authorRaphaël Gertz <git@rapsys.eu>
Sat, 5 Dec 2026 03:25:54 +0000 (04:25 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 5 Dec 2026 03:25:54 +0000 (04:25 +0100)
config/doctrine/Application.orm.xml
config/doctrine/Country.orm.xml
config/doctrine/Dance.orm.xml
config/doctrine/GoogleCalendar.orm.xml
config/doctrine/GoogleToken.orm.xml
config/doctrine/Location.orm.xml
config/doctrine/Session.orm.xml
config/doctrine/Slot.orm.xml
config/doctrine/Snippet.orm.xml

index fd29c59c15575de470aadaf52fa05feb07798152..e0ca899ca7883ed6264b85ab6c1c7aab1c10a254 100644 (file)
@@ -8,9 +8,9 @@
       </options>
     </id>
     <field name="score" type="float" nullable="true" />
       </options>
     </id>
     <field name="score" type="float" nullable="true" />
-    <field name="canceled" type="datetime" nullable="true" />
-    <field name="created" type="datetime" />
-    <field name="updated" type="datetime" />
+    <field name="canceled" type="datetime_immutable" nullable="true" />
+    <field name="created" type="datetime_immutable" />
+    <field name="updated" type="datetime_immutable" />
     <many-to-one field="dance" target-entity="Rapsys\AirBundle\Entity\Dance" inversed-by="applications" fetch="LAZY">
       <join-columns>
         <join-column name="dance_id" referenced-column-name="id" />
     <many-to-one field="dance" target-entity="Rapsys\AirBundle\Entity\Dance" inversed-by="applications" fetch="LAZY">
       <join-columns>
         <join-column name="dance_id" referenced-column-name="id" />
index 054f38a644bd7b8a4a4a8814763756f9ab369a14..2771cea6a5ec21ca54d972f6aae7821bde079bec 100644 (file)
@@ -10,8 +10,8 @@
     <field name="code" type="string" length="2" nullable="false" />
     <field name="alpha" type="string" length="3" nullable="false" />
     <field name="title" type="string" length="64" nullable="false" />
     <field name="code" type="string" length="2" nullable="false" />
     <field name="alpha" type="string" length="3" nullable="false" />
     <field name="title" type="string" length="64" nullable="false" />
-    <field name="created" type="datetime" />
-    <field name="updated" type="datetime" />
+    <field name="created" type="datetime_immutable" />
+    <field name="updated" type="datetime_immutable" />
     <one-to-many field="users" target-entity="Rapsys\AirBundle\Entity\User" mapped-by="country" fetch="LAZY" />
     <unique-constraints>
       <unique-constraint name="code" columns="code" />
     <one-to-many field="users" target-entity="Rapsys\AirBundle\Entity\User" mapped-by="country" fetch="LAZY" />
     <unique-constraints>
       <unique-constraint name="code" columns="code" />
index 5515af096e0737054acb2a4085e707895aa666bc..3aedf3c563ad1d9b1024eec5cec0ca9f75eae4bd 100644 (file)
@@ -9,8 +9,8 @@
     </id>
     <field name="name" type="string" length="32" />
     <field name="type" type="string" length="32" />
     </id>
     <field name="name" type="string" length="32" />
     <field name="type" type="string" length="32" />
-    <field name="created" type="datetime" />
-    <field name="updated" type="datetime" />
+    <field name="created" type="datetime_immutable" />
+    <field name="updated" type="datetime_immutable" />
     <one-to-many field="applications" target-entity="Rapsys\AirBundle\Entity\Application" mapped-by="dance" fetch="LAZY" />
     <many-to-many field="users" target-entity="Rapsys\AirBundle\Entity\User" mapped-by="dances" fetch="LAZY" />
     <unique-constraints>
     <one-to-many field="applications" target-entity="Rapsys\AirBundle\Entity\Application" mapped-by="dance" fetch="LAZY" />
     <many-to-many field="users" target-entity="Rapsys\AirBundle\Entity\User" mapped-by="dances" fetch="LAZY" />
     <unique-constraints>
index 536561937e9034bb79c0d3ec8e61a2f3b5e38713..b87ab8e2d4e0746d7574ff3dfbde48bc378e4afc 100644 (file)
@@ -9,9 +9,9 @@
     </id>
     <field name="mail" type="string" length="1024" />
     <field name="summary" type="string" length="255" />
     </id>
     <field name="mail" type="string" length="1024" />
     <field name="summary" type="string" length="255" />
-    <field name="synchronized" type="datetime" />
-    <field name="created" type="datetime" />
-    <field name="updated" type="datetime" />
+    <field name="synchronized" type="datetime_immutable" />
+    <field name="created" type="datetime_immutable" />
+    <field name="updated" type="datetime_immutable" />
     <many-to-one field="googleToken" target-entity="Rapsys\AirBundle\Entity\GoogleToken" inversed-by="googleCalendars" fetch="LAZY">
       <join-columns>
         <join-column name="google_token_id" referenced-column-name="id" nullable="false" />
     <many-to-one field="googleToken" target-entity="Rapsys\AirBundle\Entity\GoogleToken" inversed-by="googleCalendars" fetch="LAZY">
       <join-columns>
         <join-column name="google_token_id" referenced-column-name="id" nullable="false" />
index 42efdd785c83cd24a388a96f3e8cec13a93c2633..ffbe8a8829ddc461e540ec480d0b9a36bbec2f38 100644 (file)
@@ -10,9 +10,9 @@
     <field name="mail" type="string" length="254" />
     <field name="access" type="string" length="2048" />
     <field name="refresh" type="string" length="512" nullable="true" />
     <field name="mail" type="string" length="254" />
     <field name="access" type="string" length="2048" />
     <field name="refresh" type="string" length="512" nullable="true" />
-    <field name="expired" type="datetime" />
-    <field name="created" type="datetime" />
-    <field name="updated" type="datetime" />
+    <field name="expired" type="datetime_immutable" />
+    <field name="created" type="datetime_immutable" />
+    <field name="updated" type="datetime_immutable" />
     <one-to-many field="googleCalendars" target-entity="Rapsys\AirBundle\Entity\GoogleCalendar" mapped-by="googleToken" fetch="LAZY" />
     <many-to-one field="user" target-entity="Rapsys\AirBundle\Entity\User" inversed-by="googleTokens" fetch="LAZY">
       <join-columns>
     <one-to-many field="googleCalendars" target-entity="Rapsys\AirBundle\Entity\GoogleCalendar" mapped-by="googleToken" fetch="LAZY" />
     <many-to-one field="user" target-entity="Rapsys\AirBundle\Entity\User" inversed-by="googleTokens" fetch="LAZY">
       <join-columns>
index f31a3e5c69167ce62522706276f3999deaa1c639..0edfffdbf60ac16cc617617da5def9f5ffe50100 100644 (file)
@@ -16,8 +16,8 @@
        <field name="longitude" type="decimal" precision="9" scale="6" />
     <field name="indoor" type="boolean" />
     <field name="hotspot" type="boolean" />
        <field name="longitude" type="decimal" precision="9" scale="6" />
     <field name="indoor" type="boolean" />
     <field name="hotspot" type="boolean" />
-       <field name="created" type="datetime" />
-       <field name="updated" type="datetime" />
+       <field name="created" type="datetime_immutable" />
+       <field name="updated" type="datetime_immutable" />
     <one-to-many field="sessions" target-entity="Rapsys\AirBundle\Entity\Session" mapped-by="location" fetch="LAZY" />
     <one-to-many field="snippets" target-entity="Rapsys\AirBundle\Entity\Snippet" mapped-by="location" fetch="LAZY" />
        <many-to-many field="users" target-entity="Rapsys\AirBundle\Entity\User" mapped-by="locations" fetch="LAZY" />
     <one-to-many field="sessions" target-entity="Rapsys\AirBundle\Entity\Session" mapped-by="location" fetch="LAZY" />
     <one-to-many field="snippets" target-entity="Rapsys\AirBundle\Entity\Snippet" mapped-by="location" fetch="LAZY" />
        <many-to-many field="users" target-entity="Rapsys\AirBundle\Entity\User" mapped-by="locations" fetch="LAZY" />
index 2988037b2542e1ab30daaea5a9a6ec94d9dfc0bb..f41e171a6e351536daa50c3338ea179491679498 100644 (file)
@@ -19,9 +19,9 @@
     <field name="temperature" type="float" nullable="true" />
     <field name="temperaturemin" type="float" nullable="true" />
     <field name="temperaturemax" type="float" nullable="true" />
     <field name="temperature" type="float" nullable="true" />
     <field name="temperaturemin" type="float" nullable="true" />
     <field name="temperaturemax" type="float" nullable="true" />
-       <field name="locked" type="datetime" nullable="true" />
-       <field name="created" type="datetime" />
-       <field name="updated" type="datetime" />
+       <field name="locked" type="datetime_immutable" nullable="true" />
+       <field name="created" type="datetime_immutable" />
+       <field name="updated" type="datetime_immutable" />
        <many-to-one field="location" target-entity="Rapsys\AirBundle\Entity\Location" inversed-by="sessions" fetch="LAZY" />
        <many-to-one field="slot" target-entity="Rapsys\AirBundle\Entity\Slot" inversed-by="sessions" fetch="LAZY" />
     <one-to-many field="applications" target-entity="Rapsys\AirBundle\Entity\Application" mapped-by="session" fetch="LAZY" />
        <many-to-one field="location" target-entity="Rapsys\AirBundle\Entity\Location" inversed-by="sessions" fetch="LAZY" />
        <many-to-one field="slot" target-entity="Rapsys\AirBundle\Entity\Slot" inversed-by="sessions" fetch="LAZY" />
     <one-to-many field="applications" target-entity="Rapsys\AirBundle\Entity\Application" mapped-by="session" fetch="LAZY" />
index b52a8137bde8c41eb6cf7b46278c5172eb94bba2..bec2fe31027b7bdae72118637ae2ebd2ead74c89 100644 (file)
@@ -8,8 +8,8 @@
       </options>
     </id>
     <field name="title" type="string" length="16" />
       </options>
     </id>
     <field name="title" type="string" length="16" />
-    <field name="created" type="datetime" />
-    <field name="updated" type="datetime" />
+    <field name="created" type="datetime_immutable" />
+    <field name="updated" type="datetime_immutable" />
     <one-to-many field="sessions" target-entity="Rapsys\AirBundle\Entity\Session" mapped-by="slot" fetch="LAZY" />
     <lifecycle-callbacks>
       <lifecycle-callback type="preUpdate" method="preUpdate" />
     <one-to-many field="sessions" target-entity="Rapsys\AirBundle\Entity\Session" mapped-by="slot" fetch="LAZY" />
     <lifecycle-callbacks>
       <lifecycle-callback type="preUpdate" method="preUpdate" />
index 11ecc168ea78f65f669bbda9536ae08e95994f3b..41e248f58a0c372512b3913e2bc10cb7156183c8 100644 (file)
@@ -21,8 +21,8 @@
     <field name="donate" type="string" length="254" nullable="true" />
     <field name="link" type="string" length="254" nullable="true" />
     <field name="profile" type="string" length="254" nullable="true" />
     <field name="donate" type="string" length="254" nullable="true" />
     <field name="link" type="string" length="254" nullable="true" />
     <field name="profile" type="string" length="254" nullable="true" />
-    <field name="created" type="datetime" />
-    <field name="updated" type="datetime" />
+    <field name="created" type="datetime_immutable" />
+    <field name="updated" type="datetime_immutable" />
     <many-to-one field="location" target-entity="Rapsys\AirBundle\Entity\Location" inversed-by="snippets" fetch="LAZY">
       <join-columns>
         <join-column name="location_id" referenced-column-name="id" />
     <many-to-one field="location" target-entity="Rapsys\AirBundle\Entity\Location" inversed-by="snippets" fetch="LAZY">
       <join-columns>
         <join-column name="location_id" referenced-column-name="id" />