Permalink
Browse files

fixed previous commit

  • Loading branch information...
1 parent db0a457 commit 98d4e1478611f5d28402e04be03e67aeb8dfb26c @lsmith77 lsmith77 committed Sep 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/ODM/PHPCR/DocumentRepository.php
@@ -249,7 +249,7 @@ public function createQuery($statement, $type, $options = 0)
$statement = str_replace('SELECT *', 'SELECT '.implode(', ', $this->class->getFieldNames()), $statement);
}
- $aliasFilter = $this->class->nodeType.'.[phpcr:class] = '.$this->quote($this->documentName);
+ $aliasFilter = '['.$this->class->nodeType.'].[phpcr:class] = '.$this->quote($this->documentName);
if (false !== strpos($statement, 'WHERE')) {
$statement = str_replace('WHERE', "WHERE $aliasFilter AND ", $statement);
} elseif (false !== strpos($statement, 'ORDER BY')) {

0 comments on commit 98d4e14

Please sign in to comment.