1
0
mirror of synced 2025-01-20 15:31:40 +03:00
This commit is contained in:
zYne 2007-06-14 16:01:15 +00:00
parent b21faef5b9
commit 72466b364e

View File

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