Skip to content

Commit 3f9f4b4

Browse files
committed
fixing empty_data option
1 parent 86e82c4 commit 3f9f4b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/Form/AddressType.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public function configureOptions(OptionsResolver $resolver)
2828
$resolver->setDefaults(
2929
[
3030
'data_class' => Address::class,
31+
'empty_data' => function () {
32+
return new Address('');
33+
}
3134
]
3235
);
3336
}

0 commit comments

Comments
 (0)