create Access Control Model

This commit is contained in:
2014-10-28 18:24:34 +01:00
parent ec3e08ff79
commit 7fc8b1ca1e
14 changed files with 501 additions and 48 deletions

View File

@@ -10,4 +10,8 @@ Chill\MainBundle\Entity\Center:
fields:
name:
type: string
length: 255
length: 255
oneToMany:
groupCenters:
targetEntity: Chill\MainBundle\Entity\GroupCenter
mappedBy: groupCenters

View File

@@ -0,0 +1,16 @@
Chill\MainBundle\Entity\GroupCenter:
type: entity
table: group_centers
id:
id:
type: integer
id: true
generator:
strategy: AUTO
manyToOne:
center:
targetEntity: Chill\MainBundle\Entity\Center
inversedBy: groupCenters
manyToMany:
permissionGroups:
targetEntity: Chill\MainBundle\Entity\PermissionsGroup

View File

@@ -1,4 +1,4 @@
Chill\MainBundle\Entity\PermissionGroup:
Chill\MainBundle\Entity\PermissionsGroup:
type: entity
table: permission_groups
id:
@@ -9,7 +9,8 @@ Chill\MainBundle\Entity\PermissionGroup:
strategy: AUTO
fields:
name:
type: json_array
type: string
length: 255
manyToMany:
roleScopes:
targetEntity: Chill\MainBundle\Entity\RoleScope

View File

@@ -11,7 +11,7 @@ Chill\MainBundle\Entity\RoleScope:
role:
type: string
length: 255
oneToMany:
manyToOne:
scope:
targetEntity: Chill\MainBundle\Entity\Scope
mappedBy: roleScopes
inversedBy: roleScopes

View File

@@ -17,5 +17,15 @@ Chill\MainBundle\Entity\User:
salt:
type: string
length: 255
nullable: true
enabled:
type: boolean
default: true
locked:
type: boolean
default: false
manyToMany:
groupCenters:
targetEntity: Chill\MainBundle\Entity\GroupCenter