allow cache for the most used entities

This commit is contained in:
Julien Fastré 2016-02-21 22:52:54 +01:00
parent c8077ac575
commit 53fef9b083
7 changed files with 37 additions and 3 deletions

View File

@ -1,6 +1,9 @@
Chill\MainBundle\Entity\Country:
type: entity
table: null
cache:
usage: READ_ONLY
region: country_cache_region
fields:
id:
type: integer

View File

@ -1,6 +1,9 @@
Chill\MainBundle\Entity\GroupCenter:
type: entity
table: group_centers
cache:
usage: NONSTRICT_READ_WRITE
region: acl_cache_region
id:
id:
type: integer
@ -11,5 +14,9 @@ Chill\MainBundle\Entity\GroupCenter:
center:
targetEntity: Chill\MainBundle\Entity\Center
inversedBy: groupCenters
cache:
usage: NONSTRICT_READ_WRITE
permissionsGroup:
targetEntity: Chill\MainBundle\Entity\PermissionsGroup
targetEntity: Chill\MainBundle\Entity\PermissionsGroup
cache:
usage: NONSTRICT_READ_WRITE

View File

@ -1,6 +1,9 @@
Chill\MainBundle\Entity\Language:
type: entity
table: null
cache:
usage: READ_ONLY
region: language_cache_region
id:
id:
type: string

View File

@ -1,6 +1,9 @@
Chill\MainBundle\Entity\PermissionsGroup:
type: entity
table: permission_groups
cache:
usage: NONSTRICT_READ_WRITE
region: acl_cache_region
id:
id:
type: integer
@ -14,4 +17,6 @@ Chill\MainBundle\Entity\PermissionsGroup:
manyToMany:
roleScopes:
targetEntity: Chill\MainBundle\Entity\RoleScope
cache:
usage: NONSTRICT_READ_WRITE

View File

@ -1,6 +1,9 @@
Chill\MainBundle\Entity\RoleScope:
type: entity
table: role_scopes
cache:
usage: NONSTRICT_READ_WRITE
region: acl_cache_region
id:
id:
type: integer
@ -15,4 +18,7 @@ Chill\MainBundle\Entity\RoleScope:
scope:
targetEntity: Chill\MainBundle\Entity\Scope
inversedBy: roleScopes
nullable: true
nullable: true
cache:
usage: NONSTRICT_READ_WRITE

View File

@ -1,6 +1,9 @@
Chill\MainBundle\Entity\Scope:
type: entity
table: scopes
cache:
usage: NONSTRICT_READ_WRITE
region: acl_cache_region
id:
id:
type: integer
@ -13,4 +16,6 @@ Chill\MainBundle\Entity\Scope:
oneToMany:
roleScopes:
targetEntity: Chill\MainBundle\Entity\RoleScope
mappedBy: scope
mappedBy: scope
cache:
usage: NONSTRICT_READ_WRITE

View File

@ -1,6 +1,9 @@
Chill\MainBundle\Entity\User:
type: entity
table: users
cache:
usage: NONSTRICT_READ_WRITE
region: acl_cache_region
id:
id:
type: integer
@ -27,5 +30,7 @@ Chill\MainBundle\Entity\User:
manyToMany:
groupCenters:
targetEntity: Chill\MainBundle\Entity\GroupCenter
cache:
usage: NONSTRICT_READ_WRITE