]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Resources/config/doctrine/User.orm.yml
Cleanup
[userbundle] / Resources / config / doctrine / User.orm.yml
index a621be7abfd3b370de970a4a91e60324d3dc96f9..deec53724198b3f7008e6a8c780d40ad64c3fc4d 100644 (file)
@@ -24,10 +24,19 @@ Rapsys\UserBundle\Entity\User:
         password:
             type: string
             length: 60
+        slug:
+            type: string
+            unique: true
+            length: 32
+            nullable: true
         active:
             type: boolean
             options:
                 default: true
+        disabled:
+            type: boolean
+            options:
+                default: false
         created:
             type: datetime
         updated:
@@ -43,3 +52,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']