]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Resources/config/doctrine/Group.orm.yml
Remove pseudonym and slug
[userbundle] / Resources / config / doctrine / Group.orm.yml
index 6dfe856db00c556b715d7adcce39172f0b3ff794..ee28e6cb2b8ee8fc3da3084661609d498cd95b76 100644 (file)
@@ -8,9 +8,9 @@ Rapsys\UserBundle\Entity\Group:
             options:
                 unsigned: true
     fields:
-        role:
+        title:
             type: string
-            length: 20
+            length: 16
         created:
             type: datetime
         updated:
@@ -19,3 +19,5 @@ Rapsys\UserBundle\Entity\Group:
 #        users:
 #            targetEntity: User
 #            mappedBy: groups
+    lifecycleCallbacks:
+        preUpdate: ['preUpdate']