protected function _loadMappingFile($file) { $result = array(); if (!is_array($file)) { $file = (array) $file; } $first = each($file); array_shift($file); $result = parent::_loadMappingFile($first[1]); reset($file); $className; foreach ($file as $mappingFile) { echo $mappingFile, "\n"; $mapping = each(parent::_loadMappingFile($mappingFile)); $className = $mapping['key']; $result[$className] = $this->_merge($result[$className], $mapping[1]); } echo $result[$className]; return $result; }