protected function resolveResultMapping()
{
$maps = $this->_manager->getResultMaps();
foreach ($maps as $entry) {
foreach ($entry->getColumns() as $item) {
$resultMap = $item->getResultMapping();
if (strlen($resultMap) > 0) {
if ($maps->contains($resultMap)) {
$item->setNestedResultMap($maps[$resultMap]);
} else {
throw new TSqlMapConfigurationException('sqlmap_unable_to_find_result_mapping', $resultMap, $this->_configFile, $entry->getID());
}
}
}
if ($entry->getDiscriminator() !== null) {
$entry->getDiscriminator()->initialize($this->_manager);
}
}
}