ikucheriavenko
3/29/2017 - 8:21 AM

Getting repo through Factory

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