Skip to content

Instantly share code, notes, and snippets.

@mvanduijker
Created November 6, 2015 08:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Doctrine2 repository as a symfony2 service
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