Skip to content
This repository was archived by the owner on May 4, 2020. It is now read-only.

Commit 03e819e

Browse files
Merge pull request #422 from StefanvdBroek/columnblock-fix
Made span collection type compatible for symfony 3
2 parents 4c0655f + fa0fe49 commit 03e819e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ContentBundle/Form/Type/SpanCollectionType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public function configureOptions(OptionsResolver $resolver)
4242
parent::configureOptions($resolver);
4343

4444
$resolver->setDefaults(array(
45-
'type' => new ColumnEnumType(),
45+
'entry_type' => ColumnEnumType::class,
46+
'entry_options' => ['label' => false],
4647
'column_count' => 1,
4748
'choices' => [0, 1, 2, 3, 4, 5],
48-
'options' => ['label' => false],
4949
));
5050
}
5151

0 commit comments

Comments
 (0)