fixes #547
This commit is contained in:
parent
843deba895
commit
7389d82834
1 changed files with 4 additions and 4 deletions
|
@ -74,8 +74,6 @@ abstract class Doctrine_Query_Condition extends Doctrine_Query_Part
|
|||
return '(' . $r . ')';
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* parses a literal value and returns the parsed value
|
||||
*
|
||||
|
@ -100,7 +98,9 @@ abstract class Doctrine_Query_Condition extends Doctrine_Query_Part
|
|||
|
||||
if ( ! is_numeric($a[0])) {
|
||||
// a component found
|
||||
$value = $this->query->getTableAlias($a[0]). '.' . $a[1];
|
||||
$field = array_pop($a);
|
||||
$reference = implode('.', $a);
|
||||
$value = $this->query->getTableAlias($reference). '.' . $field;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -109,4 +109,4 @@ abstract class Doctrine_Query_Condition extends Doctrine_Query_Part
|
|||
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue