Created
November 6, 2015 08:20
-
-
Save mvanduijker/4bd7b3a8d7956f01c8c0 to your computer and use it in GitHub Desktop.
Doctrine2 repository as a symfony2 service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
orm_repository.your_entity: | |
class: Doctrine\ORM\EntityRepository | |
factory_service: doctrine.orm.default_entity_manager | |
factory_method: getRepository | |
arguments: | |
- Acme\Entity\YourEntity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment