diff --git a/framework/db/Query.php b/framework/db/Query.php index c81ab85e09..8571dbbade 100644 --- a/framework/db/Query.php +++ b/framework/db/Query.php @@ -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). diff --git a/framework/db/QueryTrait.php b/framework/db/QueryTrait.php index 4f2789dc99..ea5ab22f6f 100644 --- a/framework/db/QueryTrait.php +++ b/framework/db/QueryTrait.php @@ -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()