@@ -370,7 +370,7 @@ The QOM factory has a method to build a QOM query given four parameters, and [pr
370
370
371
371
The simplest case is to select all ` [nt:unstructured] ` nodes:
372
372
373
- $source = $qomFactory->selector('node ', '[nt:unstructured]');
373
+ $source = $qomFactory->selector('a ', '[nt:unstructured]');
374
374
$query = $qomFactory->createQuery($source, null, array(), array());
375
375
$queryResult = $query->execute();
376
376
@@ -388,13 +388,13 @@ An example of query built with QueryBuilder:
388
388
$qf = $qomFactory;
389
389
$qb = new QueryBuilder($qomFactory);
390
390
//add the source
391
- $qb->from($qomFactory->selector('node ', 'nt:unstructured'))
391
+ $qb->from($qomFactory->selector('a ', 'nt:unstructured'))
392
392
//some composed constraint
393
- ->andWhere($qf->comparison($qf->propertyValue('node ', 'title'),
393
+ ->andWhere($qf->comparison($qf->propertyValue('a ', 'title'),
394
394
QueryObjectModelConstantsInterface::JCR_OPERATOR_EQUAL_TO,
395
395
$qf->literal('Test')))
396
396
//orderings (descending by default)
397
- ->orderBy($qf->propertyValue('node ', 'content'))
397
+ ->orderBy($qf->propertyValue('a ', 'content'))
398
398
//set an offset
399
399
->setFirstResult(0)
400
400
//and the maximum number of node-tuples to retrieve
0 commit comments