Using Doctrine2's repository pattern to keep controllers thin by moving database queries out of controllers and into dedicated repository methods. Instead of calling generic findBy() in controllers, you extend EntityRepository with domain-specific methods like findAllFixedBugs(), decoupling the controller from the database schema and improving code readability through ubiquitous language.

4m read timeFrom verraes.net
Post cover image
Table of contents
Torkil Johnsen - 2012/03/23Mathias Verraes - 2012/03/23Alessandro Nadalin - 2012/03/23Torkil Johnsen - 2012/03/23
1 Impression