order the type alphabetically

Improve also the form "TranslatableActivityType" to use the
TranslatableStringHelper.
This commit is contained in:
2016-03-09 20:54:38 +01:00
parent 97df048dfb
commit 1ab0b95e74
5 changed files with 163 additions and 10 deletions

View File

@@ -16,7 +16,8 @@ services:
chill.activity.form.type.translatableactivitytype:
class: Chill\ActivityBundle\Form\Type\TranslatableActivityType
arguments:
- "@request_stack"
- "@chill.main.helper.translatable_string"
- "@chill_activity.repository.activity_type"
tags:
- { name: form.type, alias: translatable_activity_type }

View File

@@ -0,0 +1,6 @@
services:
chill_activity.repository.activity_type:
class: Doctrine\ORM\EntityRepository
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\ActivityBundle\Entity\ActivityType'