AccompanyingPeriodWork: add doctrine event listener to add logged user to referrers collection

This commit is contained in:
nobohan
2022-03-10 10:53:40 +01:00
parent 55a65ee6e9
commit da650fa1f2
2 changed files with 41 additions and 0 deletions

View File

@@ -12,3 +12,13 @@ services:
event: 'prePersist'
entity: 'Chill\PersonBundle\Entity\PersonAltName'
method: 'prePersistAltName'
Chill\PersonBundle\EventListener\AccompanyingPeriodWorkEventListener:
autoconfigure: true
autowire: true
tags:
-
name: 'doctrine.orm.entity_listener'
event: 'prePersist'
entity: 'Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWork'
method: 'prePersistAccompanyingPeriodWork'