move queries in repository

This commit is contained in:
2019-05-02 15:10:16 +02:00
parent c2b5e0f767
commit 55afcc2184
7 changed files with 120 additions and 38 deletions

View File

@@ -1,6 +1,7 @@
Chill\EventBundle\Entity\Participation:
type: entity
table: chill_event_participation
repositoryClass: Chill\EventBundle\Repository\ParticipationRepository
id:
id:
type: integer

View File

@@ -5,7 +5,13 @@ services:
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\EventBundle\Entity\Event'
chill_event.repository.participation:
class: Chill\EventBundle\Repository\ParticipationRepository
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\EventBundle\Entity\Participation'
chill_event.repository.role:
class: Doctrine\ORM\EntityRepository
factory: ['@doctrine.orm.entity_manager', getRepository]

View File

@@ -68,4 +68,6 @@ futur: futur
Show the event: Voir l'événement
Subscribe an event: Ajouter un événement
Pick an event: Choisir un événement
Pick an event: Choisir un événement
Pick a type of event: Choisir un type d'événement
Pick a moderator: Choisir un animateur