creating entity repository for users

I also re-arranged the configuration of repositories to a dedicated file, which should improve readability.
This commit is contained in:
Julien Fastré 2016-06-21 15:46:27 +02:00
parent 384cb6c793
commit 8aa37c7b73

View File

@ -0,0 +1,12 @@
services:
chill.main.countries_repository:
class: Doctrine\ORM\EntityRepository
factory: ["@doctrine.orm.entity_manager", getRepository]
arguments:
- "Chill\\MainBundle\\Entity\\Country"
chill.main.user_repository:
class: Doctrine\ORM\EntityRepository
factory: ["@doctrine.orm.entity_manager", getRepository]
arguments:
- "Chill\\MainBundle\\Entity\\User"