Commit 714a4223 authored by zYne's avatar zYne

--no commit message

--no commit message
parent ce8fa912
...@@ -63,11 +63,18 @@ class Doctrine_Query_Where extends Doctrine_Query_Condition ...@@ -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)
. '.' . '.'
......
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