]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Resources/config/doctrine/Group.orm.yml
Use bundle name as translation domain
[userbundle] / Resources / config / doctrine / Group.orm.yml
index 6dfe856db00c556b715d7adcce39172f0b3ff794..d05124f233e2b308496b0ece7eb31cf001533cea 100644 (file)
@@ -1,5 +1,6 @@
 Rapsys\UserBundle\Entity\Group:
     type: mappedSuperclass
+#   table: groups
     id:
         id:
             type: integer
@@ -8,9 +9,9 @@ Rapsys\UserBundle\Entity\Group:
             options:
                 unsigned: true
     fields:
-        role:
+        title:
             type: string
-            length: 20
+            length: 16
         created:
             type: datetime
         updated:
@@ -19,3 +20,5 @@ Rapsys\UserBundle\Entity\Group:
 #        users:
 #            targetEntity: User
 #            mappedBy: groups
+    lifecycleCallbacks:
+        preUpdate: ['preUpdate']