mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
deal with opening/closing the files
This commit is contained in:
@@ -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: { }
|
||||
|
25
Resources/config/doctrine/PersonHistoryFile.orm.yml
Normal file
25
Resources/config/doctrine/PersonHistoryFile.orm.yml
Normal 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]
|
Reference in New Issue
Block a user