public function removeAndFlush()
    {
        if (0 === func_num_args()) {
            throw new \LogicException('Missing arguments');
        }

        foreach (func_get_args() as $remove) {
            $this->getDoctrine()->getManager()->remove($remove);
        }

        $this->getDoctrine()->getManager()->flush();

        return $this;
    }
public function removeAndFlush()
    {
        if (0 === func_num_args()) {
            throw new \LogicException('Missing arguments');
        }

        foreach (func_get_args() as $remove) {
            $this->getDoctrine()->getManager()->remove($remove);
        }

        $this->getDoctrine()->getManager()->flush();

        return $this;
    }
public function removeAndFlush ( ) { if ( 0 === func_num_args ( ) ) { throw new \ LogicException ( 'Missing arguments' ) ; } foreach ( func_get_args ( ) as $ remove ) { $ this -> getDoctrine ( ) -> getManager ( ) -> remove ( $ remove ) ; } $ this -> getDoctrine ( ) -> getManager ( ) -> flush ( ) ; return $ this ; }
Remove and Flush

@return $this
Remove and Flush