protected function AbstractClassMetadataFactory::getParentClasses in Plug 7
Gets an array of parent classes for the given entity class.
Parameters
string $name:
Return value
array
1 call to AbstractClassMetadataFactory::getParentClasses()
- AbstractClassMetadataFactory::loadMetadata in lib/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ AbstractClassMetadataFactory.php - Loads the metadata of the class in question and all it's ancestors whose metadata is still not loaded.
File
- lib/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ AbstractClassMetadataFactory.php, line 277
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\MappingCode
protected function getParentClasses($name) {
// Collect parent classes, ignoring transient (not-mapped) classes.
$parentClasses = array();
foreach (array_reverse($this
->getReflectionService()
->getParentClasses($name)) as $parentClass) {
if (!$this
->getDriver()
->isTransient($parentClass)) {
$parentClasses[] = $parentClass;
}
}
return $parentClasses;
}