You are here

protected function AbstractClassMetadataFactory::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

1 call to AbstractClassMetadataFactory::onNotFoundMetadata()
AbstractClassMetadataFactory::getMetadataFor in lib/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 lib/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

lib/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;
}