mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
initialize entities
This commit is contained in:
20
Resources/config/doctrine/Event.orm.yml
Normal file
20
Resources/config/doctrine/Event.orm.yml
Normal 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: { }
|
22
Resources/config/doctrine/EventType.orm.yml
Normal file
22
Resources/config/doctrine/EventType.orm.yml
Normal 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: { }
|
23
Resources/config/doctrine/Participation.orm.yml
Normal file
23
Resources/config/doctrine/Participation.orm.yml
Normal 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: { }
|
19
Resources/config/doctrine/Role.orm.yml
Normal file
19
Resources/config/doctrine/Role.orm.yml
Normal 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: { }
|
19
Resources/config/doctrine/Status.orm.yml
Normal file
19
Resources/config/doctrine/Status.orm.yml
Normal 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: { }
|
Reference in New Issue
Block a user