mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-18 08:14:24 +00:00
Due to bug http://www.doctrine-project.org/jira/browse/DDC-2742 (?), the relation between person and spoken_languages was broken. We configure the relation explicitly (providing joincolumns) to avoid this bug.
71 lines
1.9 KiB
YAML
71 lines
1.9 KiB
YAML
Chill\PersonBundle\Entity\Person:
|
|
type: entity
|
|
table: null
|
|
indexes:
|
|
person_names:
|
|
columns: [firstName, lastName]
|
|
repositoryClass: Chill\PersonBundle\Entity\PersonRepository
|
|
fields:
|
|
id:
|
|
type: integer
|
|
id: true
|
|
generator:
|
|
strategy: AUTO
|
|
firstName:
|
|
type: string
|
|
length: 255
|
|
lastName:
|
|
type: string
|
|
length: 255
|
|
dateOfBirth:
|
|
type: date
|
|
column: date_of_birth
|
|
nullable: true
|
|
placeOfBirth:
|
|
type: string
|
|
length: 255
|
|
column: place_of_birth
|
|
default: ''
|
|
genre:
|
|
type: string
|
|
length: 9
|
|
memo:
|
|
type: text
|
|
default: ''
|
|
email:
|
|
type: text
|
|
proxyHistoryOpenState:
|
|
type: boolean
|
|
name: proxy_open
|
|
cFData:
|
|
type: array
|
|
phonenumber:
|
|
type: text
|
|
nullable: true
|
|
manyToOne:
|
|
countryOfBirth:
|
|
targetEntity: Chill\MainBundle\Entity\Country
|
|
inversedBy: birthsIn
|
|
nullable: true
|
|
nationality:
|
|
targetEntity: Chill\MainBundle\Entity\Country
|
|
inversedBy: nationals
|
|
nullable: true
|
|
oneToMany:
|
|
history:
|
|
targetEntity: PersonHistoryFile
|
|
mappedBy: person
|
|
cascade: [persist, remove, merge, detach]
|
|
manyToMany:
|
|
spokenLanguages:
|
|
targetEntity: Chill\MainBundle\Entity\Language
|
|
joinTable:
|
|
name: persons_spoken_languages
|
|
joinColumns:
|
|
person_id:
|
|
referencedColumnName: id
|
|
inverseJoinColumns:
|
|
language_id:
|
|
referencedColumnName: id
|
|
lifecycleCallbacks: { }
|