1
0
mirror of synced 2025-01-20 07:21:40 +03:00

old relation adapter layer now supports tree relations

This commit is contained in:
zYne 2007-05-26 17:04:41 +00:00
parent 49574ce956
commit adc870d2e5

View File

@ -477,7 +477,11 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
$e = explode('.', $args[1]);
if (in_array($e[0], $classes)) {
$options['local'] = $e[1];
if ($options['type'] >= Doctrine_Relation::MANY) {
$options['foreign'] = $e[1];
} else {
$options['local'] = $e[1];
}
} else {
$e2 = explode(' as ', $args[0]);
if ($e[0] !== $e2[0] && ( ! isset($e2[1]) || $e[0] !== $e2[1])) {