Julien Fastré d736a9a1f9 Add nullable: true to default phonenumber
this caused a NOT NULL error on postgresql

[ci skip] refs #320
2014-11-19 00:26:32 +01:00

57 lines
1.4 KiB
YAML

Chill\PersonBundle\Entity\Person:
type: entity
table: null
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]
lifecycleCallbacks: { }