mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-24 16:07:19 +01:00
Adjust QueryInterface and QueryTrait types on where() (#14714)
these did never allow a string condition. Only SQL Query and AR implementation do. fixes #14496
This commit is contained in:
@@ -153,7 +153,7 @@ interface QueryInterface
|
||||
* - Additionally you can specify arbitrary operators as follows: A condition of `['>=', 'id', 10]` will result in the
|
||||
* following SQL expression: `id >= 10`.
|
||||
*
|
||||
* @param string|array $condition the conditions that should be put in the WHERE part.
|
||||
* @param array $condition the conditions that should be put in the WHERE part.
|
||||
* @return $this the query object itself
|
||||
* @see andWhere()
|
||||
* @see orWhere()
|
||||
@@ -163,7 +163,7 @@ interface QueryInterface
|
||||
/**
|
||||
* Adds an additional WHERE condition to the existing one.
|
||||
* The new condition and the existing one will be joined using the 'AND' operator.
|
||||
* @param string|array $condition the new WHERE condition. Please refer to [[where()]]
|
||||
* @param array $condition the new WHERE condition. Please refer to [[where()]]
|
||||
* on how to specify this parameter.
|
||||
* @return $this the query object itself
|
||||
* @see where()
|
||||
@@ -174,7 +174,7 @@ interface QueryInterface
|
||||
/**
|
||||
* Adds an additional WHERE condition to the existing one.
|
||||
* The new condition and the existing one will be joined using the 'OR' operator.
|
||||
* @param string|array $condition the new WHERE condition. Please refer to [[where()]]
|
||||
* @param array $condition the new WHERE condition. Please refer to [[where()]]
|
||||
* on how to specify this parameter.
|
||||
* @return $this the query object itself
|
||||
* @see where()
|
||||
|
||||
Reference in New Issue
Block a user