Make it possible to disable flush event through configuration
This commit is contained in:
parent
6bbe61f319
commit
e5754ef5fc
2 changed files with 1 additions and 3 deletions
|
|
@ -465,9 +465,6 @@ class FOSElasticaExtension extends Extension
|
|||
*/
|
||||
private function getDoctrineEvents(array $typeConfig)
|
||||
{
|
||||
// Flush always calls depending on actions scheduled in lifecycle listeners
|
||||
$typeConfig['listener']['flush'] = true;
|
||||
|
||||
switch ($typeConfig['driver']) {
|
||||
case 'orm':
|
||||
$eventsClass = '\Doctrine\ORM\Events';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue