Permalink
Browse files

Updated doc block

  • Loading branch information...
1 parent f991faf commit ca59fd1e50410748b9aa45bffdabd0e147cc58b1 dantleech committed Dec 9, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/Doctrine/ODM/PHPCR/DocumentRepository.php
@@ -278,7 +278,14 @@ public function getDocumentsByQuery(\PHPCR\Query\QueryInterface $query)
}
/**
- * Return a pre-configured query builder instance
+ * Create a QueryBuilder that is prepopulated for this repositories document
+ *
+ * The returned query builder will be prepopulated with the criteria
+ * required to search for this repositories document class.
+ *
+ * NOTE: When adding criteria to the query builder you should
+ * use ->andWhere(...) as ->where(...) will overwrite
+ * the class criteria.
*
* @return QueryBuilder
*/

0 comments on commit ca59fd1

Please sign in to comment.