Commit 72466b36 authored by zYne's avatar zYne

--no commit message

--no commit message
parent b21faef5
......@@ -102,6 +102,8 @@ class Doctrine_Relation_Parser
}
$this->_pending[$alias] = array_merge($options, array('class' => $name, 'alias' => $alias));
return $this->_pending[$alias];
}
/**
* getRelation
......@@ -134,7 +136,9 @@ class Doctrine_Relation_Parser
));
$this->bind($def['refClass'], array('type' => Doctrine_Relation::MANY,
'foreign' => $def['local']));
'foreign' => $def['local'],
'local' => $this->_table->getIdentifier()));
}
if (in_array($def['class'], $localClasses)) {
$rel = new Doctrine_Relation_Nest($def);
......
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