How to have custom repositories per application in a monorepo structure on Symfony
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