mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
create Access Control Model
This commit is contained in:
@@ -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
|
16
Resources/config/doctrine/GroupCenter.orm.yml
Normal file
16
Resources/config/doctrine/GroupCenter.orm.yml
Normal 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
|
@@ -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
|
@@ -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
|
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user