1
0
mirror of synced 2025-01-18 22:41:43 +03:00
This commit is contained in:
zYne 2007-05-23 21:13:13 +00:00
parent cab55d0d06
commit e922ae7689

View File

@ -160,9 +160,9 @@ class Doctrine_Relation_Parser
}
}
if ($recursive) {
return $this->getRelation($name, false);
return $this->getRelation($alias, false);
} else {
throw new Doctrine_Table_Exception($this->options['name'] . " doesn't have a relation to " . $name);
throw new Doctrine_Table_Exception('Unknown relation alias ' . $alias);
}
}
/**
@ -341,7 +341,6 @@ class Doctrine_Relation_Parser
}
}
}
Doctrine::dump($def);
throw new Doctrine_Relation_Parser_Exception("Couldn't complete relation definition.");
}
}