Skip to content

Commit a34967d

Browse files
author
dantleech
committed
Added shortcut ->qomf() for getQOMFactory()
- So this is analagous to the ORMs ->expr() helper
1 parent d686eb0 commit a34967d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/PHPCR/Util/QOM/QueryBuilder.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ public function getQOMFactory()
122122
return $this->qomFactory;
123123
}
124124

125+
/**
126+
* Shortcut for getQOMFactory()
127+
*/
128+
public function qomf()
129+
{
130+
return $this->getQOMFactory();
131+
}
132+
125133
/**
126134
* sets the position of the first result to retrieve (the "offset").
127135
*

0 commit comments

Comments
 (0)