improve command move

- allow to delete some entities instead of moving them ;
- trigger event on move / delete entities in order to customize sql
statements
This commit is contained in:
2019-08-28 13:39:35 +02:00
parent 0ccc998e52
commit 1d1bafe3d9
6 changed files with 260 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
services:
Chill\PersonBundle\Actions\Remove\PersonMove:
arguments:
$em: '@Doctrine\ORM\EntityManagerInterface'
$em: '@Doctrine\ORM\EntityManagerInterface'
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'

View File

@@ -13,5 +13,6 @@ services:
arguments:
$em: '@Doctrine\ORM\EntityManagerInterface'
$mover: '@Chill\PersonBundle\Actions\Remove\PersonMove'
$chillLogger: '@chill.main.logger'
tags:
- { name: console.command }