addId() public method

Adds one more filter to the and filter.
public addId ( string $id )
$id string Adds id to filter
示例#1
0
 /**
  * @group functional
  */
 public function testComboIdsSearchArray()
 {
     $query = new Ids();
     $query->setIds(array('1', '2'));
     $query->addId('3');
     $resultSet = $this->_type->search($query);
     $this->assertEquals(3, $resultSet->count());
 }