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