mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
upgrade and refactor personhistoryFile
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
Chill\PersonBundle\Entity\AccompanyingPeriod\ClosingMotive:
|
||||
type: entity
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
id: true
|
||||
generator: { strategy: AUTO }
|
||||
fields:
|
||||
name:
|
||||
type: json_array
|
||||
active:
|
||||
type: boolean
|
@@ -13,9 +13,6 @@ Chill\PersonBundle\Entity\PersonHistoryFile:
|
||||
type: date
|
||||
default: null
|
||||
nullable: true
|
||||
motive:
|
||||
type: string
|
||||
length: 200
|
||||
memo:
|
||||
type: text
|
||||
manyToOne:
|
||||
@@ -23,3 +20,6 @@ Chill\PersonBundle\Entity\PersonHistoryFile:
|
||||
targetEntity: Person
|
||||
inversedBy: history
|
||||
cascade: [refresh]
|
||||
closingMotive:
|
||||
targetEntity: Chill\PersonBundle\Entity\AccompanyingPeriod\ClosingMotive
|
||||
nullable: true
|
||||
|
@@ -49,7 +49,7 @@ chill_person_history_create:
|
||||
|
||||
|
||||
chill_person_history_update:
|
||||
pattern: /person/{person_id}/history/{history_id}/update
|
||||
pattern: /person/history/{history_id}/update
|
||||
defaults: { _controller: ChillPersonBundle:History:update }
|
||||
|
||||
chill_person_history_close:
|
||||
|
@@ -6,3 +6,11 @@ services:
|
||||
class: Chill\PersonBundle\Routing\RoutesLoader
|
||||
tags:
|
||||
- { name: routing.loader }
|
||||
|
||||
chill.person.accompanying_period_closing_motive:
|
||||
class: Chill\PersonBundle\Form\Type\ClosingMotiveType
|
||||
scope: request
|
||||
arguments:
|
||||
- "@request"
|
||||
tags:
|
||||
- { name: form.type, alias: closing_motive }
|
||||
|
Reference in New Issue
Block a user