JamesMoss\Flywheel\Query::where PHP Method

where() public method

See also: Query::andWhere
public where ( $field, $operator = null, $value = null ) : Query
return Query The same instance of this class.
    public function where($field, $operator = null, $value = null)
    {
        return $this->andWhere($field, $operator, $value);
    }

Usage Example

Example #1
0
 public function testPredicate()
 {
     $path = __DIR__ . '/fixtures/datastore/querytest';
     $config = new Config($path . '/');
     $repo = new Repository('countries', $config);
     $query = new Query($repo);
     $query->where('cca2', '==', 'GB');
     $predicate = new Predicate();
     $predicate->where('cca2', '==', 'GB');
     $this->assertAttributeEquals($predicate, 'predicate', $query);
 }
All Usage Examples Of JamesMoss\Flywheel\Query::where