diff --git a/framework/db/ActiveRecordInterface.php b/framework/db/ActiveRecordInterface.php index b1736c0cea..b5a7539c66 100644 --- a/framework/db/ActiveRecordInterface.php +++ b/framework/db/ActiveRecordInterface.php @@ -254,7 +254,7 @@ interface ActiveRecordInterface * * @param array $attributes attribute values (name-value pairs) to be saved for the record. * Unlike [[update()]] these are not going to be validated. - * @param string|array $condition the condition that matches the records that should get updated. + * @param array $condition the condition that matches the records that should get updated. * Please refer to [[QueryInterface::where()]] on how to specify this parameter. * An empty condition will match all records. * @return int the number of rows updated @@ -271,7 +271,7 @@ interface ActiveRecordInterface * Customer::deleteAll([status = 3]); * ``` * - * @param string|array $condition the condition that matches the records that should get deleted. + * @param array $condition the condition that matches the records that should get deleted. * Please refer to [[QueryInterface::where()]] on how to specify this parameter. * An empty condition will match all records. * @return int the number of rows deleted diff --git a/framework/db/QueryInterface.php b/framework/db/QueryInterface.php index 2f52eac704..0192543f10 100644 --- a/framework/db/QueryInterface.php +++ b/framework/db/QueryInterface.php @@ -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() diff --git a/framework/db/QueryTrait.php b/framework/db/QueryTrait.php index 54870fdd08..5b9a1233d2 100644 --- a/framework/db/QueryTrait.php +++ b/framework/db/QueryTrait.php @@ -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 array $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 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() @@ -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 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()