|
@@ -53,6 +53,9 @@ class TranslatableChoiceType extends ChoiceType
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * {@inheritDoc}
|
|
|
+ */
|
|
|
public function buildForm(FormBuilder $builder, array $options)
|
|
|
{
|
|
|
// translate options before building form
|
|
@@ -68,6 +71,14 @@ class TranslatableChoiceType extends ChoiceType
|
|
|
parent::buildForm($builder, $options);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * {@inheritDoc}
|
|
|
+ */
|
|
|
+ public function getParent(array $options)
|
|
|
+ {
|
|
|
+ return 'choice';
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* {@inheritDoc}
|
|
|
*/
|