How to override bundled Doctrine repository in Symfony
问题 I have an independent Symfony bundle (installed with Composer) with entities and repositories to share between my applications that connect same database. Entities are attached to every applications using configuration (yml shown): doctrine: orm: mappings: acme: type: annotation dir: %kernel.root_dir%/../vendor/acme/entities/src/Entities prefix: Acme\Entities alias: Acme Well, it was the easiest way to include external entities in application, but looks a bit ugly. Whenever I get repository