Updated: 13 February 2025
Take from Querying for Objects: The Repository
Querying for objects
The options are:
Doctrine Query Language
Allows you to type queries using a commonly known query language, but referencing PHP objects instead.
Query Builder
Recommended when queries need to be built dynamically, based upon PHP if / else conditions.
SQL
https://symfony.com/doc/current/doctrine.html#querying-with-sql