mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-15 17:59:43 +00:00
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:
12
Resources/config/services/repositories.yml
Normal file
12
Resources/config/services/repositories.yml
Normal 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"
|
Reference in New Issue
Block a user