private function getManagerFor($class)
    {
        $manager = $this->doctrine->getManagerForClass($class);

        if ($manager === null) {
            throw new \RuntimeException(
                sprintf(
                    'Class "%s" seems not to be a managed Doctrine entity. Did you forget to map it?',
                    $class
                )
            );
        }

        return $manager;
    }
private function getManagerFor($class)
    {
        $manager = $this->doctrine->getManagerForClass($class);

        if ($manager === null) {
            throw new \RuntimeException(
                sprintf(
                    'Class "%s" seems not to be a managed Doctrine entity. Did you forget to map it?',
                    $class
                )
            );
        }

        return $manager;
    }
private function getManagerFor ( $ class ) { $ manager = $ this -> doctrine -> getManagerForClass ( $ class ) ; if ( $ manager === null ) { throw new \ RuntimeException ( sprintf ( 'Class "%s" seems not to be a managed Doctrine entity. Did you forget to map it?' , $ class ) ) ; } return $ manager ; }
Get doctrine object manager for a class.

@param string $class The user class

@return ObjectManager
Get doctrine object manager for a class .