Merge branch 'master' of github.com:Chill-project/Main

This commit is contained in:
Marc Ducobu
2014-11-05 10:07:29 +01:00
27 changed files with 1270 additions and 145 deletions

View File

@@ -1,14 +0,0 @@
Chill\MainBundle\Entity\Agent:
type: entity
table: agents
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
name:
type: string
length: 80

View File

@@ -0,0 +1,17 @@
Chill\MainBundle\Entity\Center:
type: entity
table: centers
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
name:
type: string
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

@@ -0,0 +1,17 @@
Chill\MainBundle\Entity\PermissionsGroup:
type: entity
table: permission_groups
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
name:
type: string
length: 255
manyToMany:
roleScopes:
targetEntity: Chill\MainBundle\Entity\RoleScope

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
manyToOne:
scope:
targetEntity: Chill\MainBundle\Entity\Scope
inversedBy: 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
oneToMany:
roleScopes:
targetEntity: Chill\MainBundle\Entity\RoleScope
mappedBy: scope

View File

@@ -0,0 +1,31 @@
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
nullable: true
enabled:
type: boolean
default: true
locked:
type: boolean
default: false
manyToMany:
groupCenters:
targetEntity: Chill\MainBundle\Entity\GroupCenter