Made andWhere varadic
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
222dbb7bc9
commit
07cb6aaeff
|
@ -754,16 +754,16 @@ class QueryBuilder implements IQueryBuilder {
|
||||||
* ->andWhere('u.is_active = 1');
|
* ->andWhere('u.is_active = 1');
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param mixed $where The query restrictions.
|
* @param mixed ...$where The query restrictions.
|
||||||
*
|
*
|
||||||
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
|
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
|
||||||
*
|
*
|
||||||
* @see where()
|
* @see where()
|
||||||
*/
|
*/
|
||||||
public function andWhere($where) {
|
public function andWhere(...$where) {
|
||||||
call_user_func_array(
|
call_user_func_array(
|
||||||
[$this->queryBuilder, 'andWhere'],
|
[$this->queryBuilder, 'andWhere'],
|
||||||
func_get_args()
|
$where
|
||||||
);
|
);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -575,7 +575,7 @@ interface IQueryBuilder {
|
||||||
* @see where()
|
* @see where()
|
||||||
* @since 8.2.0
|
* @since 8.2.0
|
||||||
*/
|
*/
|
||||||
public function andWhere($where);
|
public function andWhere(...$where);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 New Issue