Doctrine 2 : Custom repositories and inheritance
问题 Hello Stack Overflowers, Working with Doctrine 2, I encounter some troubles regarding custom repositories and inheritance. Long story short, I want to make that kind of structure : BaseEntityRepository : contains generic methods such as findByXXX() based on called class name SomeEntityRepository : contains specific methods related to the entity type The code for those classes looks like this : BaseEntityRepository : namespace model\repositories; use \Doctrine\ORM\EntityRepository; class