protected function TestClassMetadataFactory::onNotFoundMetadata in Plug 7
Provides a fallback hook for loading metadata when loading failed due to reflection/mapping exceptions
Override this method to implement a fallback strategy for failed metadata loading
Parameters
string $className:
Return value
\Doctrine\Common\Persistence\Mapping\ClassMetadata|null
Overrides AbstractClassMetadataFactory::onNotFoundMetadata
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ ClassMetadataFactoryTest.php, line 186
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
protected function onNotFoundMetadata($className) {
if (!($fallback = $this->fallbackCallback)) {
return null;
}
return $fallback();
}