The xPDOQuery extends the xPDOCriteria class and allows you to abstract out complex SQL queries into an OOP format. This allows encapsulation of SQL calls so that they can work in multiple database types, and be easy to read and dynamically build.
Grab the first 4 Boxes with:
- Owners that have the letter 'a' in their names
- A width of at least 10
- A height that is not 2
- sorted by the Box name, ascending and then by the Box height, descending