How to have custom repositories per application in a monorepo structure on Symfony

2019-03-29T15:32:47+03:00July 13th, 2017|Categories: PHP, Technical|Tags: , , , , , |

Imagine you have a couple of applications based on Symfony, using Doctrine as the ORM, and sharing a domain. In order to avoid having a shared repository for an entity with queries intended for other applications, you’d need custom repositories for each application for the entities in the domain. Here’s my take on this