Answer the question
In order to leave comments, you need to log in
How to make several fields on yii2 distinct without losing the rest?
Greetings
I'm making a query like this
$model = Files::find()->select(['filename','ext','size'])->distinct()->all();
There is uniqueness in three fields.
Everything is great.
But there are more fields in the Files table. How can I get them?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question