mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
rename 'label' to 'name'.
Warning : this commit require to rename some table column, but the original Version file has been update. If you do not care to loose your date, you may run : ``` php app/console doctrine:migrations:execute --down 20160318111334 php app/console doctrine:migrations:execute --up 20160318111334 php app/console doctrine:cache:metadata #(if you have a cache for doctrine meta date) ``` close #20
This commit is contained in:
@@ -67,7 +67,7 @@ class EventType extends AbstractType
|
||||
}
|
||||
|
||||
$builder
|
||||
->add('label')
|
||||
->add('name')
|
||||
->add(
|
||||
'date',
|
||||
'date',
|
||||
|
@@ -15,7 +15,7 @@ class EventTypeType extends AbstractType
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder
|
||||
->add('label')
|
||||
->add('name')
|
||||
->add('active')
|
||||
;
|
||||
}
|
||||
|
@@ -76,7 +76,7 @@ class ParticipationType extends AbstractType
|
||||
);
|
||||
},
|
||||
'choice_label' => function(Role $r) use ($translatableStringHelper) {
|
||||
return $translatableStringHelper->localize($r->getLabel());
|
||||
return $translatableStringHelper->localize($r->getName());
|
||||
}
|
||||
));
|
||||
|
||||
@@ -102,7 +102,7 @@ class ParticipationType extends AbstractType
|
||||
return $qb;
|
||||
},
|
||||
'choice_label' => function(Status $s) use ($translatableStringHelper) {
|
||||
return $translatableStringHelper->localize($s->getLabel());
|
||||
return $translatableStringHelper->localize($s->getName());
|
||||
}
|
||||
));
|
||||
|
||||
|
@@ -15,7 +15,7 @@ class RoleType extends AbstractType
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder
|
||||
->add('label')
|
||||
->add('name')
|
||||
->add('active')
|
||||
->add('type')
|
||||
;
|
||||
|
@@ -15,7 +15,7 @@ class StatusType extends AbstractType
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder
|
||||
->add('label')
|
||||
->add('name')
|
||||
->add('active')
|
||||
->add('type')
|
||||
;
|
||||
|
@@ -62,7 +62,7 @@ class TranslatableEventType extends AbstractType
|
||||
->where('et.active = true');
|
||||
},
|
||||
'choice_label' => function (EventType $t) use ($helper) {
|
||||
return $helper->localize($t->getLabel());
|
||||
return $helper->localize($t->getName());
|
||||
},
|
||||
)
|
||||
);
|
||||
|
Reference in New Issue
Block a user