run() public method

Runs the query.
public run ( ) : Result
return Result The documents returned from this query.
Example #1
0
 public function testOrderingById()
 {
     $pred = $this->getPredicate();
     $qe = new QueryExecuter($this->getRepo('querybyid'), $pred, array(), array('__id DESC'));
     $result = $qe->run();
     $this->assertEquals(3, count($result));
     $this->assertEquals('Sweden', $result->first()->name);
     $this->assertEquals('Estonia', $result[1]->name);
     $this->assertEquals('Djibouti', $result[2]->name);
 }