Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions form/data_mappers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@ method::
->add('red', IntegerType::class, [
// enforce the strictness of the type to ensure the constructor
// of the Color class doesn't break
'empty_data' => '0',
'empty_data' => 0,
])
->add('green', IntegerType::class, [
'empty_data' => '0',
'empty_data' => 0,
])
->add('blue', IntegerType::class, [
'empty_data' => '0',
'empty_data' => 0,
])
// configure the data mapper for this FormType
->setDataMapper($this)
Expand Down
Loading