I have a query Product::find()->joinWith('sizes')->all(); - 9 lines
request Product::find()->joinWith('sizes')->limit(6)->all(); - 3 lines
I can not understand why in the second case the limit is not correct
I have a query Product::find()->joinWith('sizes')->all(); - 9 lines
request Product::find()->joinWith('sizes')->limit(6)->all(); - 3 lines
I can not understand why in the second case the limit is not correct
Source: https://ru.stackoverflow.com/questions/576453/
All Articles
Product::find()->joinWith('sizes')->distinct('id')->limit(6)->all();- 6 lines as needed, but for some strange reason - Vladimir Vasilev