Made where varadic
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
2976b39102
commit
222dbb7bc9
2 changed files with 4 additions and 4 deletions
|
@ -729,14 +729,14 @@ class QueryBuilder implements IQueryBuilder {
|
||||||
* ->where($or);
|
* ->where($or);
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param mixed $predicates The restriction predicates.
|
* @param mixed ...$predicates The restriction predicates.
|
||||||
*
|
*
|
||||||
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
|
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
|
||||||
*/
|
*/
|
||||||
public function where($predicates) {
|
public function where(...$predicates) {
|
||||||
call_user_func_array(
|
call_user_func_array(
|
||||||
[$this->queryBuilder, 'where'],
|
[$this->queryBuilder, 'where'],
|
||||||
func_get_args()
|
$predicates
|
||||||
);
|
);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -554,7 +554,7 @@ interface IQueryBuilder {
|
||||||
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
|
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
|
||||||
* @since 8.2.0
|
* @since 8.2.0
|
||||||
*/
|
*/
|
||||||
public function where($predicates);
|
public function where(...$predicates);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds one or more restrictions to the query results, forming a logical
|
* Adds one or more restrictions to the query results, forming a logical
|
||||||
|
|
Loading…
Reference in a new issue