phpcr/phpcr-utils — pull request #28 by dantleech (2012-12-15 09:51:27+00:00)
Title: Qomf shortcut

I have added a shortcut for ``->getQOMFactory()``, ``->qomf()`` which is more analogous to the ORM's ``->expr()`` shortcut.

````php
$qb->orWhere($qb->qomf()->comparison(
$qb->qomf()->propertyValue('blog'),
QOMConstants::JCR_OPERATOR_EQUAL_TO,
$qb->qomf()->literal('My Blog')
));
````

rather than:

````php
$qomf = $qb->getQOMFactory();
$qb->orWhere($qomf->comparison(
$qf->propertyValue('blog'),
Constants::JCR_OPERATOR_EQUAL_TO,
$qf->literal($options['blog_uuid'])
));
````

What do you think?