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