Make it possible to disable flush event through configuration

This commit is contained in:
Thomas Ploch 2014-05-13 13:13:06 +02:00
commit e5754ef5fc
2 changed files with 1 additions and 3 deletions

View file

@ -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';