sf4 deprecated: migrate Doctrine ORM mapping to annotation

This commit is contained in:
2020-07-24 18:57:58 +02:00
parent c8c76e5a8d
commit ad8c1bbe9f
10 changed files with 291 additions and 212 deletions

View File

@@ -1,31 +0,0 @@
Chill\EventBundle\Entity\Event:
type: entity
table: chill_event_event
repositoryClass: Chill\EventBundle\Repository\EventRepository
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
name:
type: string
length: '150'
date:
type: datetime
oneToMany:
participations:
targetEntity: Chill\EventBundle\Entity\Participation
mappedBy: event
manyToOne:
center:
targetEntity: Chill\MainBundle\Entity\Center
type:
targetEntity: Chill\EventBundle\Entity\EventType
circle:
targetEntity: Chill\MainBundle\Entity\Scope
moderator:
targetEntity: Chill\MainBundle\Entity\User
lifecycleCallbacks: { }

View File

@@ -1,22 +0,0 @@
Chill\EventBundle\Entity\EventType:
type: entity
table: chill_event_event_type
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
name:
type: json_array
active:
type: boolean
oneToMany:
roles:
targetEntity: Chill\EventBundle\Entity\Role
mappedBy: type
statuses:
targetEntity: Chill\EventBundle\Entity\Status
mappedBy: type
lifecycleCallbacks: { }

View File

@@ -1,24 +0,0 @@
Chill\EventBundle\Entity\Participation:
type: entity
table: chill_event_participation
repositoryClass: Chill\EventBundle\Repository\ParticipationRepository
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
lastUpdate:
type: datetime
manyToOne:
event:
targetEntity: Chill\EventBundle\Entity\Event
inversedBy: participations
person:
targetEntity: Chill\PersonBundle\Entity\Person
role:
targetEntity: Chill\EventBundle\Entity\Role
status:
targetEntity: Chill\EventBundle\Entity\Status
lifecycleCallbacks: { }

View File

@@ -1,19 +0,0 @@
Chill\EventBundle\Entity\Role:
type: entity
table: chill_event_role
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
name:
type: json_array
active:
type: boolean
manyToOne:
type:
targetEntity: Chill\EventBundle\Entity\EventType
inversedBy: roles
lifecycleCallbacks: { }

View File

@@ -1,19 +0,0 @@
Chill\EventBundle\Entity\Status:
type: entity
table: chill_event_status
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
name:
type: json_array
active:
type: boolean
manyToOne:
type:
targetEntity: Chill\EventBundle\Entity\EventType
inversedBy: statuses
lifecycleCallbacks: { }