implements user-scope-role-scope first work

This commit is contained in:
2014-10-24 12:19:30 +02:00
parent d9aa417e3c
commit 445daecfc0
11 changed files with 197 additions and 70 deletions

View File

@@ -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

View 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

View 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

View 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