Getting repo through Factory
services:
acme_customer.customer_repository:
class: Doctrine\ORM\EntityRepository
factory: ['@doctrine.orm.default_entity_manager', getRepository]
arguments:
- Acme\CustomerBundle\Entity\Customer