When you want to retrieve a set of entities of the same type, we usually use a query to get the data of a table.
But in Magento not every entity is stored in a single table and that means that a very complex query is required to get the data. A generic system/language to create queries for Magento entities was the solution.
For this solution, Magento has created a system called collections. A collection is a set of entities of the same type where you can add filters to it to customize your result.
In this recipe, we will see what we can do with Magento collections.
For this recipe, it is required to have the Packt_HelloWorld
module installed with the code of the previous recipe Creating a flat table with models.