where() public method

Adds the WHERE clause.
public where ( string $condition, mixed $value = null )
$condition string
$value mixed
Ejemplo n.º 1
0
 /**
  * @group integration
  */
 public function testExecutingASelectOfASingleRecordReturnsAnArrayWithOneRecord()
 {
     $manager = $this->createManager();
     $query = new Query(array('Address'));
     $query->where('@rid = ?', $this->addressId . ':0');
     $results = $manager->execute($query);
     $this->assertInstanceOf(static::COLLECTION_CLASS, $results);
     $this->assertSame(1, count($results));
 }