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: Chill\MainBundle\Entity\Country:
type: entity type: entity
table: null table: null
cache:
usage: READ_ONLY
region: country_cache_region
fields: fields:
id: id:
type: integer type: integer

View File

@ -1,6 +1,9 @@
Chill\MainBundle\Entity\GroupCenter: Chill\MainBundle\Entity\GroupCenter:
type: entity type: entity
table: group_centers table: group_centers
cache:
usage: NONSTRICT_READ_WRITE
region: acl_cache_region
id: id:
id: id:
type: integer type: integer
@ -11,5 +14,9 @@ Chill\MainBundle\Entity\GroupCenter:
center: center:
targetEntity: Chill\MainBundle\Entity\Center targetEntity: Chill\MainBundle\Entity\Center
inversedBy: groupCenters inversedBy: groupCenters
cache:
usage: NONSTRICT_READ_WRITE
permissionsGroup: 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: Chill\MainBundle\Entity\Language:
type: entity type: entity
table: null table: null
cache:
usage: READ_ONLY
region: language_cache_region
id: id:
id: id:
type: string type: string

View File

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

View File

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

View File

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

View File

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