95 lines
2.7 KiB
YAML

Chill\PersonBundle\Entity\Person:
type: entity
table: chill_person_person
indexes:
person_names:
columns: [firstName, lastName]
repositoryClass: Chill\PersonBundle\Repository\PersonRepository
fields:
id:
type: integer
id: true
generator:
strategy: AUTO
firstName:
type: string
length: 255
lastName:
type: string
length: 255
birthdate:
type: date
nullable: true
placeOfBirth:
type: string
length: 255
column: place_of_birth
default: ''
gender:
type: string
length: 9
nullable: true
memo:
type: text
default: ''
contactInfo:
type: text
nullable: true
email:
type: text
nullable: true
proxyAccompanyingPeriodOpenState:
type: boolean
name: proxy_open
cFData:
type: json_array
phonenumber:
type: text
nullable: true
length: 40
mobilenumber:
type: text
nullable: true
length: 40
fullnameCanonical:
type: string
length: 255
manyToOne:
countryOfBirth:
targetEntity: Chill\MainBundle\Entity\Country
inversedBy: birthsIn
nullable: true
nationality:
targetEntity: Chill\MainBundle\Entity\Country
inversedBy: nationals
nullable: true
center:
targetEntity: Chill\MainBundle\Entity\Center
nullable: false
maritalStatus:
targetEntity: Chill\PersonBundle\Entity\MaritalStatus
nullable: true
oneToMany:
accompanyingPeriods:
targetEntity: AccompanyingPeriod
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
addresses:
targetEntity: Chill\MainBundle\Entity\Address
orderBy: { 'validFrom': 'DESC' }
joinTable:
name: chill_person_persons_to_addresses
cascade: [persist, remove, merge, detach]
lifecycleCallbacks: { }