mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
implements user-scope-role-scope first work
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Chill\MainBundle\Entity\Agent:
|
||||
Chill\MainBundle\Entity\Center:
|
||||
type: entity
|
||||
table: agents
|
||||
table: centers
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
@@ -9,6 +9,4 @@ Chill\MainBundle\Entity\Agent:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
name:
|
||||
type: string
|
||||
length: 80
|
||||
|
||||
type: json_array
|
17
Resources/config/doctrine/RoleScope.orm.yml
Normal file
17
Resources/config/doctrine/RoleScope.orm.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
Chill\MainBundle\Entity\RoleScope:
|
||||
type: entity
|
||||
table: role_scopes
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
id: true
|
||||
generator:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
role:
|
||||
type: string
|
||||
length: 255
|
||||
oneToMany:
|
||||
scope:
|
||||
targetEntity: Chill\MainBundle\Entity\Scope
|
||||
mappedBy: roleScopes
|
16
Resources/config/doctrine/Scope.orm.yml
Normal file
16
Resources/config/doctrine/Scope.orm.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
Chill\MainBundle\Entity\Scope:
|
||||
type: entity
|
||||
table: scopes
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
id: true
|
||||
generator:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
name:
|
||||
type: json_array
|
||||
manyToOne:
|
||||
roleScopes:
|
||||
targetEntity: Chill\MainBundle\Entity\RoleScope
|
||||
inversedBy: scope
|
21
Resources/config/doctrine/User.orm.yml
Normal file
21
Resources/config/doctrine/User.orm.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
Chill\MainBundle\Entity\User:
|
||||
type: entity
|
||||
table: users
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
id: true
|
||||
generator:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
username:
|
||||
type: string
|
||||
length: 80
|
||||
password:
|
||||
type: string
|
||||
length: 255
|
||||
salt:
|
||||
type: string
|
||||
length: 255
|
||||
|
||||
|
Reference in New Issue
Block a user