protected function getAllAncestors($type)
{
if (!isset($this->superTypeConfiguration[$type])) {
return array();
}
$ancestors = $this->superTypeConfiguration[$type];
foreach ($this->superTypeConfiguration[$type] as $currentSuperType) {
if (isset($this->types[$currentSuperType])) {
$currentSuperTypeAncestors = $this->getAllAncestors($currentSuperType);
$ancestors = array_merge($ancestors, $currentSuperTypeAncestors);
}
}
return $ancestors;
}