You are here

protected function AbstractClassMetadataFactory::onNotFoundMetadata in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php \Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory::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

1 call to AbstractClassMetadataFactory::onNotFoundMetadata()
AbstractClassMetadataFactory::getMetadataFor in vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php
Gets the class metadata descriptor for a class.
1 method overrides AbstractClassMetadataFactory::onNotFoundMetadata()
TestClassMetadataFactory::onNotFoundMetadata in vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/ClassMetadataFactoryTest.php
Provides a fallback hook for loading metadata when loading failed due to reflection/mapping exceptions

File

vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php, line 360

Class

AbstractClassMetadataFactory
The ClassMetadataFactory is used to create ClassMetadata objects that contain all the metadata mapping informations of a class which describes how a class should be mapped to a relational database.

Namespace

Doctrine\Common\Persistence\Mapping

Code

protected function onNotFoundMetadata($className) {
  return null;
}