mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
Wrong operator format (#19548)
Based on the docs and mainly my experience with Yii, I believe the "and" operator format here is wrong. The condition parts which the "and" separates have to be each in an array, otherwise the where() doesn't know where the condition starts and where ends.
This commit is contained in:
@ -879,10 +879,10 @@ Using the operator format, it would look like the following:
|
|||||||
```php
|
```php
|
||||||
[
|
[
|
||||||
'and',
|
'and',
|
||||||
'>', 'posts', $minLimit,
|
['>', 'posts', $minLimit],
|
||||||
'>', 'comments', $minLimit,
|
['>', 'comments', $minLimit],
|
||||||
'>', 'reactions', $minLimit,
|
['>', 'reactions', $minLimit],
|
||||||
'>', 'subscriptions', $minLimit
|
['>', 'subscriptions', $minLimit]
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user