Eventlistener to create accompanyingPeriodWork

This commit is contained in:
2021-12-06 13:57:10 +00:00
committed by Julien Fastré
parent 9924c3a3b7
commit f10d762e59
5 changed files with 101 additions and 7 deletions

View File

@@ -0,0 +1,15 @@
services:
Chill\ActivityBundle\EntityListener\ActivityEntityListener:
autowire: true
autoconfigure: true
tags:
-
name: 'doctrine.orm.entity_listener'
event: 'postPersist'
entity: 'Chill\ActivityBundle\Entity\Activity'
method: 'persistActionToCourse'
-
name: 'doctrine.orm.entity_listener'
event: 'postUpdate'
entity: 'Chill\ActivityBundle\Entity\Activity'
method: 'persistActionToCourse'