public createQuery ( PHPCR\Query\QOM\SourceInterface $source, PHPCR\Query\QOM\ConstraintInterface $constraint = null, array $orderings = [], array $columns = [] ) | ||
$source | PHPCR\Query\QOM\SourceInterface | |
$constraint | PHPCR\Query\QOM\ConstraintInterface | |
$orderings | array | |
$columns | array |
public function createQuery(SourceInterface $source, ConstraintInterface $constraint = null, array $orderings = array(), array $columns = array())
{
return $this->factory->get('Query\\QOM\\QueryObjectModel', array($this->objectManager, $source, $constraint, $orderings, $columns));
}
/** * @expectedException \PHPCR\Query\InvalidQueryException */ public function testDescendantQueryTrailingSlash() { $this->nodeTypeManager->expects($this->once())->method('getSubtypes')->will($this->returnValue(array())); $query = $this->factory->createQuery($this->factory->selector('nt:unstructured', 'nt:unstructured'), $this->factory->descendantNode('nt:unstructured', '/some/node/')); $this->walker->walkQOMQuery($query); }