initialize entities

This commit is contained in:
2016-03-18 11:22:09 +01:00
parent f3b00ac69b
commit 11d58a457a
10 changed files with 800 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
Chill\EventBundle\Entity\Event:
type: entity
table: chill_event_event
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
label:
type: string
length: '150'
date:
type: date
oneToMany:
participations:
targetEntity: Chill\EventBundle\Entity\Participation
mappedBy: event
lifecycleCallbacks: { }

View File

@@ -0,0 +1,22 @@
Chill\EventBundle\Entity\EventType:
type: entity
table: chill_event_event_type
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
label:
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

@@ -0,0 +1,23 @@
Chill\EventBundle\Entity\Participation:
type: entity
table: chill_event_participation
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

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

View File

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