protected function flushObjects(array $objects, bool $flush)
    {
        if ($flush || $this->autoFlush) {
            $this->getManager()->flush($objects);
        }
    }
protected function flushObjects(array $objects, bool $flush)
    {
        if ($flush || $this->autoFlush) {
            $this->getManager()->flush($objects);
        }
    }
protected function flushObjects ( array $ objects , bool $ flush ) { if ( $ flush || $ this -> autoFlush ) { $ this -> getManager ( ) -> flush ( $ objects ) ; } }
Flush managed objects.

@param array $objects
@param bool  $flush
Flush managed objects .