Answer the question
In order to leave comments, you need to log in
How can I get the brands that products in this category have?
Can you please tell me how can I get certain brands that products in this category have?
At the moment, I simply display all the brands like this:
$brands = Brands::find()->all();
PS:
I understand that I need a request in the form, but I don’t understand how to get the IDs of these brands!
$brands = Brands::findAll([1, 2, 3, 4]);
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