chill-bundles/Resources/config/doctrine/PermissionsGroup.orm.yml
Julien Fastré 29882dd09c add cascade persisting on permissionsGroups#roleScopes
This is required for a fluent fixtures creation.
2017-06-20 18:59:58 +02:00

28 lines
749 B
YAML

Chill\MainBundle\Entity\PermissionsGroup:
type: entity
table: permission_groups
cache:
usage: NONSTRICT_READ_WRITE
region: acl_cache_region
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
name:
type: string
length: 255
manyToMany:
roleScopes:
targetEntity: Chill\MainBundle\Entity\RoleScope
inversedBy: permissionsGroups
cache:
usage: NONSTRICT_READ_WRITE
cascade: [ persist ]
oneToMany:
groupCenters:
targetEntity: Chill\MainBundle\Entity\GroupCenter
mappedBy: permissionsGroup