Don't need postRemove.
This commit is contained in:
parent
f258c9ddc0
commit
5ec652063d
|
@ -412,7 +412,7 @@ class FOSElasticaExtension extends Extension
|
|||
$eventMapping = array(
|
||||
'insert' => array('postPersist'),
|
||||
'update' => array('postUpdate'),
|
||||
'delete' => array('postRemove', 'preRemove')
|
||||
'delete' => array('preRemove'),
|
||||
'flush' => array('postFlush')
|
||||
);
|
||||
|
||||
|
|
|
@ -209,10 +209,6 @@ abstract class AbstractListener implements EventSubscriber
|
|||
}
|
||||
}
|
||||
|
||||
public function postRemove(EventArgs $eventArgs)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Iterate through scheduled actions *after* flushing to ensure that the ElasticSearch index will only be affected
|
||||
* only if the query is successful
|
||||
|
|
|
@ -21,9 +21,4 @@ class Listener extends AbstractListener
|
|||
{
|
||||
parent::preRemove($eventArgs);
|
||||
}
|
||||
|
||||
public function postRemove(EventArgs $eventArgs)
|
||||
{
|
||||
parent::postRemove($eventArgs);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue