mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
Improve Query PHPDoc [skip ci]. (#16834)
This commit is contained in:
committed by
Alexander Makarov
parent
ab39246ab5
commit
ae5dee485e
@ -1001,7 +1001,7 @@ PATTERN;
|
||||
|
||||
/**
|
||||
* Adds additional group-by columns to the existing ones.
|
||||
* @param string|array $columns additional columns to be grouped by.
|
||||
* @param string|array|ExpressionInterface $columns additional columns to be grouped by.
|
||||
* Columns can be specified in either a string (e.g. "id, name") or an array (e.g. ['id', 'name']).
|
||||
* The method will automatically quote the column names unless a column contains some parenthesis
|
||||
* (which means the column contains a DB expression).
|
||||
|
||||
@ -21,7 +21,7 @@ use yii\base\NotSupportedException;
|
||||
trait QueryTrait
|
||||
{
|
||||
/**
|
||||
* @var string|array query condition. This refers to the WHERE clause in a SQL statement.
|
||||
* @var string|array|ExpressionInterface query condition. This refers to the WHERE clause in a SQL statement.
|
||||
* For example, `['age' => 31, 'team' => 1]`.
|
||||
* @see where() for valid syntax on specifying this value.
|
||||
*/
|
||||
@ -85,7 +85,7 @@ trait QueryTrait
|
||||
*
|
||||
* See [[QueryInterface::where()]] for detailed documentation.
|
||||
*
|
||||
* @param string|array $condition the conditions that should be put in the WHERE part.
|
||||
* @param string|array|ExpressionInterface $condition the conditions that should be put in the WHERE part.
|
||||
* @return $this the query object itself
|
||||
* @see andWhere()
|
||||
* @see orWhere()
|
||||
@ -99,7 +99,7 @@ trait QueryTrait
|
||||
/**
|
||||
* Adds an additional WHERE condition to the existing one.
|
||||
* The new condition and the existing one will be joined using the 'AND' operator.
|
||||
* @param array $condition the new WHERE condition. Please refer to [[where()]]
|
||||
* @param string|array|ExpressionInterface $condition the new WHERE condition. Please refer to [[where()]]
|
||||
* on how to specify this parameter.
|
||||
* @return $this the query object itself
|
||||
* @see where()
|
||||
@ -119,7 +119,7 @@ trait QueryTrait
|
||||
/**
|
||||
* Adds an additional WHERE condition to the existing one.
|
||||
* The new condition and the existing one will be joined using the 'OR' operator.
|
||||
* @param array $condition the new WHERE condition. Please refer to [[where()]]
|
||||
* @param string|array|ExpressionInterface $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