Permalink
Browse files

Merge pull request #13 from inspiran/master

Incorrect doc - Do not call execute()
  • Loading branch information...
2 parents 6cf4e63 + 0803c41 commit b1fac25cf3a765c4268c252f941f0afb0b619c8e @lsmith77 lsmith77 committed Jan 5, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 en/reference/query-builder.rst
@@ -44,8 +44,7 @@ This query is equivalent to the JCR-SQL2 query ``SELECT * FROM nt:unstructured W
/** @var $qb QueryBuilder */
$factory = $qb->getQOMFactory();
$qb->from($factory->selector('nt:unstructured'))
- ->where($factory->propertyExistence('name'))
- ->execute();
+ ->where($factory->propertyExistence('name'));
$result = $documentManager->getDocumentsByQuery($qb->getQuery());
foreach ($result as $document) {
@@ -90,4 +89,4 @@ If you want to know the SQL2 statement generated call getStatement() on the quer
<?php
//Prepare the query builder with the desired statement.
//..
- echo $qb->getQuery()->getStatement();
+ echo $qb->getQuery()->getStatement();

0 comments on commit b1fac25

Please sign in to comment.