[Bridge][Form] Rename some deprecated methods
This commit is contained in:
parent
78747e6cc5
commit
cbc99442c6
@ -39,7 +39,7 @@ abstract class DoctrineType extends AbstractType
|
|||||||
if ($options['multiple']) {
|
if ($options['multiple']) {
|
||||||
$builder
|
$builder
|
||||||
->addEventSubscriber(new MergeDoctrineCollectionListener())
|
->addEventSubscriber(new MergeDoctrineCollectionListener())
|
||||||
->prependClientTransformer(new CollectionToArrayTransformer())
|
->addViewTransformer(new CollectionToArrayTransformer())
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ class ModelType extends AbstractType
|
|||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
{
|
{
|
||||||
if ($options['multiple']) {
|
if ($options['multiple']) {
|
||||||
$builder->prependClientTransformer(new CollectionToArrayTransformer());
|
$builder->addViewTransformer(new CollectionToArrayTransformer());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user