This commit is contained in:
parent
ce8fa91204
commit
714a42239b
@ -63,11 +63,18 @@ class Doctrine_Query_Where extends Doctrine_Query_Condition
|
|||||||
|
|
||||||
$field = array_pop($a);
|
$field = array_pop($a);
|
||||||
$reference = implode('.', $a);
|
$reference = implode('.', $a);
|
||||||
|
|
||||||
|
if (empty($reference)) {
|
||||||
|
$map = $this->query->getRootDeclaration();
|
||||||
|
|
||||||
|
$alias = $this->query->getTableAlias($this->query->getRootAlias());
|
||||||
|
$table = $map['table'];
|
||||||
|
} else {
|
||||||
$map = $this->query->load($reference, false);
|
$map = $this->query->load($reference, false);
|
||||||
|
|
||||||
$alias = $this->query->getTableAlias($reference);
|
$alias = $this->query->getTableAlias($reference);
|
||||||
$table = $map['table'];
|
$table = $map['table'];
|
||||||
|
}
|
||||||
if ($this->query->getType() === Doctrine_Query::SELECT) {
|
if ($this->query->getType() === Doctrine_Query::SELECT) {
|
||||||
$first = $conn->quoteIdentifier($alias)
|
$first = $conn->quoteIdentifier($alias)
|
||||||
. '.'
|
. '.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user