protected function TestClassMetadataFactory::onNotFoundMetadata in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/ClassMetadataFactoryTest.php \Doctrine\Tests\Common\Persistence\Mapping\TestClassMetadataFactory::onNotFoundMetadata()
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
- vendor/
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();
}