mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
Fixes #11697: Added filterHaving()
, andFilterHaving()
and orFilterHaving()
to yii\db\Query
Signed-off-by: Alexander Makarov <sam@rmcreative.ru>
This commit is contained in:
@ -369,6 +369,12 @@ You can also specify operator explicitly:
|
||||
$query->andFilterCompare('name', 'Doe', 'like');
|
||||
```
|
||||
|
||||
Since Yii 2.0.11 there are similar methods for `HAVING` condition:
|
||||
|
||||
- [[yii\db\Query::filterHaving()|filterHaving()]]
|
||||
- [[yii\db\Query::andFilterHaving()|andFilterHaving()]]
|
||||
- [[yii\db\Query::orFilterHaving()|orFilterHaving()]]
|
||||
|
||||
### [[yii\db\Query::orderBy()|orderBy()]] <span id="order-by"></span>
|
||||
|
||||
The [[yii\db\Query::orderBy()|orderBy()]] method specifies the `ORDER BY` fragment of a SQL query. For example,
|
||||
|
Reference in New Issue
Block a user