Commit a39c35c8 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 531f4a4d
......@@ -792,10 +792,10 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
$alias = $name;
}
$this->bound[$alias] = array('field' => $field,
'type' => $type,
'class' => $name,
'alias' => $alias);
$this->bound[$alias] = array('field' => $field,
'type' => $type,
'class' => $name,
'alias' => $alias);
if ($options !== null) {
$opt = array();
if (is_string($options)) {
......@@ -860,7 +860,12 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
$definition = $this->bound[$name];
list($component, $definition['foreign']) = explode('.', $definition['field']);
list($component, $tmp) = explode('.', $definition['field']);
if ( ! isset($definition['foreign'])) {
$definition['foreign'] = $tmp;
}
unset($definition['field']);
$definition['table'] = $this->conn->getTable($definition['class'], $allowExport);
......
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