]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Resources/config/doctrine/User.orm.yml
Add strict
[userbundle] / Resources / config / doctrine / User.orm.yml
index a621be7abfd3b370de970a4a91e60324d3dc96f9..7d51e1cd7cf40c5686ec40159a545340dec764f1 100644 (file)
@@ -28,6 +28,10 @@ Rapsys\UserBundle\Entity\User:
             type: boolean
             options:
                 default: true
+        disabled:
+            type: boolean
+            options:
+                default: false
         created:
             type: datetime
         updated:
@@ -43,3 +47,5 @@ Rapsys\UserBundle\Entity\User:
 #see if usefull: https://stackoverflow.com/questions/34523699/how-to-extend-doctrine-entity-in-another-bundle
 #            joinTable:
 #                name: groups_users
+    lifecycleCallbacks:
+        preUpdate: ['preUpdate']