You are here

public function AbstractClassMetadataFactory::hasMetadataFor in Plug 7

Checks whether the factory has the metadata for a class loaded already.

Parameters

string $className:

Return value

boolean TRUE if the metadata of the class in question is already loaded, FALSE otherwise.

Overrides ClassMetadataFactory::hasMetadataFor

File

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

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

public function hasMetadataFor($className) {
  return isset($this->loadedMetadata[$className]);
}