Hi,
I am working on a plugin and I would like to use a Doctrine Entity listener. (When the entity is updated I would like to do something). Making the entity listener is OK, but I don’t know what to put in config.php to make it work.
I tried this:
'mautic.mbi.doctrine.listener.newmatchlistener' => [
'class' => 'MauticPlugin\MbiBundle\EventListener\NewMatchListener',
'tag' => 'doctrine.orm.entity_listener',
'tagArguments' => [
'event' => 'postUpdate',
'entity' => '\MauticPlugin\MbiBundle\Entity\NewMatch'
],
'arguments' => [
'mautic.lead.model.lead',
'mautic.lead.model.list'
],
],
I appreciate your help, thanks in advance!