add repository for center

This commit is contained in:
2018-10-19 14:27:46 +02:00
parent 25f5503030
commit 62ee90f671
4 changed files with 37 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
Chill\MainBundle\Entity\Center:
type: entity
table: centers
repositoryClass: Chill\MainBundle\Repository\CenterRepository
id:
id:
type: integer

View File

@@ -24,4 +24,12 @@ services:
- "Chill\\MainBundle\\Entity\\PostalCode"
Chill\MainBundle\Repository\PostalCodeRepository: '@chill.main.postalcode_repository'
chill.main.center_repository:
class: Doctrine\ORM\EntityRepository
factory: ["@doctrine.orm.entity_manager", getRepository]
arguments:
- "Chill\\MainBundle\\Entity\\Center"
Chill\MainBundle\Repository\CenterRepository: '@chill.main.center_repository'