Mvc\Model\Query\Builder::orWhere

public Phalcon\Mvc\Model\Query\Builder orWhere (string $conditions, [array $bindParams], [array $bindTypes])

Appends a condition to the current conditions using an OR operator

$builder->orWhere('name = "Peter"');
$builder->orWhere('name = :name: AND id > :id:', array('name' => 'Peter', 'id' => 100));
doc_Phalcon
2016-10-16 09:54:33
Comments
Leave a Comment

Please login to continue.