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:
Ondřej Vašíček
2022-09-12 13:59:33 +02:00
committed by GitHub
parent 27344557ea
commit 60dec4008b

View File

@ -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]
] ]
``` ```