Skip to content

Commit

Permalink
Update doc/Tutorial.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Jan 12, 2012
1 parent 49a2dea commit 2867db2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ The simplest case is to select all `[nt:unstructured]` nodes:

Sometimes you may prefer to build a query in several steps. For that reason, PHPCR provides a fluent interface for QOM: que QueryBuilder. An example of query built with QueryBuilder:

$qf = $qomFactory;
$qb = new QueryBuilder($qomFactory)
$qf = $qomFactory;
$qb = new QueryBuilder($qomFactory)
//add the source
->from($qomFactory->selector('[nt:unstructured]')
//some composed constraint
Expand All @@ -302,7 +302,7 @@ Sometimes you may prefer to build a query in several steps. For that reason, PHP
->setFirstResult(15)
//and the maximum number of node-tuples to retrieve
->setMaxResults(25);
$result = $qb->execute;
$result = $qb->execute;

### Writing data

Expand Down

0 comments on commit 2867db2

Please sign in to comment.