From a34967d7f89c1574737d55702c2956d8e82a6e4d Mon Sep 17 00:00:00 2001 From: dantleech Date: Sat, 15 Dec 2012 09:57:25 +0100 Subject: [PATCH] Added shortcut ->qomf() for getQOMFactory() - So this is analagous to the ORMs ->expr() helper --- src/PHPCR/Util/QOM/QueryBuilder.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/PHPCR/Util/QOM/QueryBuilder.php b/src/PHPCR/Util/QOM/QueryBuilder.php index dba98cd..0f5e27c 100644 --- a/src/PHPCR/Util/QOM/QueryBuilder.php +++ b/src/PHPCR/Util/QOM/QueryBuilder.php @@ -122,6 +122,14 @@ public function getQOMFactory() return $this->qomFactory; } + /** + * Shortcut for getQOMFactory() + */ + public function qomf() + { + return $this->getQOMFactory(); + } + /** * sets the position of the first result to retrieve (the "offset"). *