deal with opening/closing the files

This commit is contained in:
2013-11-26 23:00:30 +01:00
parent e390c891d8
commit 377a69d26f
20 changed files with 1262 additions and 22 deletions

View File

@@ -44,6 +44,9 @@ CL\Chill\PersonBundle\Entity\Person:
type: text
email:
type: text
proxyHistoryOpenState:
type: boolean
name: proxy_open
manyToOne:
countryOfBirth:
targetEntity: CL\Chill\MainBundle\Entity\Country
@@ -53,4 +56,9 @@ CL\Chill\PersonBundle\Entity\Person:
targetEntity: CL\Chill\MainBundle\Entity\Country
inversedBy: nationals
nullable: true
oneToMany:
history:
targetEntity: PersonHistoryFile
mappedBy: person
cascade: [persist, remove, merge, detach]
lifecycleCallbacks: { }

View File

@@ -0,0 +1,25 @@
CL\Chill\PersonBundle\Entity\PersonHistoryFile:
type: entity
table: person_history_file
id:
id:
type: integer
id: true
generator: { strategy: AUTO }
fields:
date_opening:
type: date
date_closing:
type: date
default: null
nullable: true
motive:
type: string
length: 200
memo:
type: text
manyToOne:
person:
targetEntity: Person
inversedBy: history
cascade: [refresh]