public function get($className)
    {
        if (!$this->has($className)) {
            throw new Exception('Repository ' . $className . ' not found');
        }
        return $this->pool[$className];
    }
public function get($className)
    {
        if (!$this->has($className)) {
            throw new Exception('Repository ' . $className . ' not found');
        }
        return $this->pool[$className];
    }
public function get ( $ className ) { if ( ! $ this -> has ( $ className ) ) { throw new Exception ( 'Repository ' . $ className . ' not found' ) ; } return $ this -> pool [ $ className ] ; }
Return a doctrine repository according to its class name

@param $className
@return DoctrineRepository
@throws Exception
Return a doctrine repository according to its class name