/** * Sets default repository class. * * @param string $className * @return void * @throws OHMException If not a ObjectRepository */ public function setDefaultRepositoryClassName($className) { $reflectionClass = new ReflectionClass($className); if (!$reflectionClass->implementsInterface('Doctrine\\Common\\Persistence\\ObjectRepository')) { throw OHMException::invalidEntityRepository($className); } $this->attributes['defaultRepositoryClassName'] = $className; }