Symfony 5: Mastering Doctrine Relations
Collection Criteria for Custom Relation Queries
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

I can already call $category->getProducts() to get a collection of all of the products for a specific Category. But now, I want an easy way to be able to get that same collection, but filtered by newest DESC and where a product's price is greater than $100. Is that possible?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.