public function getDefaultRepositoryFactory($classMetadata)
    {
        if (!is_callable($this->defaultRepositoryFactory)) {
            throw new \RuntimeException('Unable to handle unmapped data without a defaultRepositoryFactory set', 1);
        }

        $factory = $this->defaultRepositoryFactory;

        return $factory($classMetadata);
    }
public function getDefaultRepositoryFactory($classMetadata)
    {
        if (!is_callable($this->defaultRepositoryFactory)) {
            throw new \RuntimeException('Unable to handle unmapped data without a defaultRepositoryFactory set', 1);
        }

        $factory = $this->defaultRepositoryFactory;

        return $factory($classMetadata);
    }
public function getDefaultRepositoryFactory ( $ classMetadata ) { if ( ! is_callable ( $ this -> defaultRepositoryFactory ) ) { throw new \ RuntimeException ( 'Unable to handle unmapped data without a defaultRepositoryFactory set' , 1 ) ; } $ factory = $ this -> defaultRepositoryFactory ; return $ factory ( $ classMetadata ) ; }
Returns the default repository factory set on this object.

@param ClassMetadataInterface $classMetadata

@return callable $factory
Returns the default repository factory set on this object .