Jackalope\Query\QOM\QueryObjectModelFactory::propertyValue PHP Method

propertyValue() public method

{@inheritDoc}
public propertyValue ( $selectorName, $propertyName )
    public function propertyValue($selectorName, $propertyName)
    {
        return new PropertyValue($selectorName, $propertyName);
    }

Usage Example

 public function testQueryWithOrderings()
 {
     $this->nodeTypeManager->expects($this->once())->method('getSubtypes')->will($this->returnValue(array()));
     $query = $this->factory->createQuery($this->factory->selector('nt:unstructured', 'nt:unstructured'), null, array($this->factory->ascending($this->factory->propertyValue('nt:unstructured', "jcr:path"))), array());
     list($selectors, $selectorAliases, $sql) = $this->walker->walkQOMQuery($query);
     $this->assertEquals(sprintf("SELECT %s FROM phpcr_nodes n0 WHERE n0.workspace_name = ? AND n0.type IN ('nt:unstructured') ORDER BY n0.path ASC", $this->defaultColumns), $sql);
 }
All Usage Examples Of Jackalope\Query\QOM\QueryObjectModelFactory::propertyValue