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:
Carsten Brandt
2017-08-24 10:59:20 +02:00
committed by GitHub
parent f2e3312dbc
commit 98a71d8b0d
3 changed files with 8 additions and 8 deletions

View File

@@ -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()