12.
Criterios: Filtrar colecciones de relaciones
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
2 Comments
What's the difference between using the
Criteriashown in the video or adding moreandWherestatements?Is it just Criteria can be reused in other queries easily part?
Hey @Alex123
In this case, it is convenient to use a criteria because you can filter the
fortuneCookiescollection without relying on the repository. You can just say$category->getFortuneCookiesStillInProduction()in any place of your code, and it will make a DB query under the hoodCheers!
"Houston: no signs of life"
Start the conversation!