Commit e922ae76 authored by zYne's avatar zYne

--no commit message

--no commit message
parent cab55d0d
......@@ -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.");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment