private function persist($element)
    {
        $this->manager->persist($element);
        /** @noinspection PhpMethodParametersCountMismatchInspection */
        $this->manager->flush($element);
    }
private function persist($element)
    {
        $this->manager->persist($element);
        /** @noinspection PhpMethodParametersCountMismatchInspection */
        $this->manager->flush($element);
    }
private function persist ( $ element ) { $ this -> manager -> persist ( $ element ) ; /** @noinspection PhpMethodParametersCountMismatchInspection */ $ this -> manager -> flush ( $ element ) ; }
Persists the element and flushes the manager.

@param object $element
Persists the element and flushes the manager .