How to correctly add into the andFilterWhere method more or less operand?
andFilterWhere(['user_id' => 1]) - here I need to add > operand
If the argument you pass into andFilterWhere
is an array with 0-based indexes the first item in array is treated as operator and others as operands.
So if you want to use >
comparison you can do it like this:
andFilterWhere(['>', 'user_id', 1])
See the documentation for yii\db\QueryInterface::where()
for more details.