sf4 deprecated: migrate Doctrine ORM mapping to annotation

This commit is contained in:
2020-07-24 14:51:34 +02:00
parent 3033be78d2
commit 2746d3e003
20 changed files with 434 additions and 410 deletions

View File

@@ -1,25 +0,0 @@
Chill\MainBundle\Entity\Address:
type: entity
table: chill_main_address
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
streetAddress1:
type: string
length: 255
streetAddress2:
type: string
length: 255
validFrom:
type: date
isNoAddress:
type: boolean
default: false
manyToOne:
postcode:
targetEntity: Chill\MainBundle\Entity\PostalCode
lifecycleCallbacks: { }

View File

@@ -1,18 +0,0 @@
Chill\MainBundle\Entity\Center:
type: entity
table: centers
repositoryClass: Chill\MainBundle\Repository\CenterRepository
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

@@ -1,18 +0,0 @@
Chill\MainBundle\Entity\Country:
type: entity
table: null
cache:
usage: READ_ONLY
region: country_cache_region
fields:
id:
type: integer
id: true
generator:
strategy: AUTO
name:
type: json_array
countryCode:
type: string
length: 3
lifecycleCallbacks: { }

View File

@@ -1,26 +0,0 @@
Chill\MainBundle\Entity\GroupCenter:
type: entity
table: group_centers
cache:
usage: NONSTRICT_READ_WRITE
region: acl_cache_region
id:
id:
type: integer
id: true
generator:
strategy: AUTO
manyToOne:
center:
targetEntity: Chill\MainBundle\Entity\Center
inversedBy: groupCenters
cache:
usage: NONSTRICT_READ_WRITE
permissionsGroup:
targetEntity: Chill\MainBundle\Entity\PermissionsGroup
cache:
usage: NONSTRICT_READ_WRITE
manyToMany:
users:
targetEntity: Chill\MainBundle\Entity\User
mappedBy: groupCenters

View File

@@ -1,13 +0,0 @@
Chill\MainBundle\Entity\Language:
type: entity
table: null
cache:
usage: READ_ONLY
region: language_cache_region
id:
id:
type: string
fields:
name:
type: json_array
lifecycleCallbacks: { }

View File

@@ -1,32 +0,0 @@
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
flags:
type: json
options:
default: '[]'
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

View File

@@ -1,24 +0,0 @@
Chill\MainBundle\Entity\PostalCode:
type: entity
table: chill_main_postal_code
repositoryClass: Chill\MainBundle\Repository\PostalCodeRepository
indexes:
- { name: search_name_code, columns: [ "code", "label" ] }
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
name:
type: string
length: 255
column: label
code:
type: string
length: 100
manyToOne:
country:
targetEntity: Chill\MainBundle\Entity\Country
lifecycleCallbacks: { }

View File

@@ -1,28 +0,0 @@
Chill\MainBundle\Entity\RoleScope:
type: entity
table: role_scopes
cache:
usage: NONSTRICT_READ_WRITE
region: acl_cache_region
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
role:
type: string
length: 255
manyToOne:
scope:
targetEntity: Chill\MainBundle\Entity\Scope
inversedBy: roleScopes
nullable: true
cache:
usage: NONSTRICT_READ_WRITE
manyToMany:
permissionsGroups:
targetEntity: Chill\MainBundle\Entity\PermissionsGroup
mappedBy: roleScopes

View File

@@ -1,21 +0,0 @@
Chill\MainBundle\Entity\Scope:
type: entity
table: scopes
cache:
usage: NONSTRICT_READ_WRITE
region: acl_cache_region
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
name:
type: json_array
oneToMany:
roleScopes:
targetEntity: Chill\MainBundle\Entity\RoleScope
mappedBy: scope
cache:
usage: NONSTRICT_READ_WRITE

View File

@@ -1,53 +0,0 @@
Chill\MainBundle\Entity\User:
type: entity
table: users
repositoryClass: Chill\MainBundle\Repository\UserRepository
cache:
usage: NONSTRICT_READ_WRITE
region: acl_cache_region
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
username:
type: string
length: 80
usernameCanonical:
name: username_canonical
type: string
length: 80
unique: true
email:
type: string
length: 150
nullable: true
emailCanonical:
name: email_canonical
type: string
length: 150
nullable: true
unique: true
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
inversedBy: users
cache:
usage: NONSTRICT_READ_WRITE