Can someone explain why i am getting this error? I am using CollectionType for first time. Used documentation.
Here is my part of where i am trying to use CollectionType:
$builder->add('cc', CollectionType::class, [
'required' => false,
'entry_type' => EmailType::class
])
and here is my request:
{
"email" => "[email protected]",
"description" => "test description",
"subject" => "test",
"cc" => array:1 [
0 => "[email protected]"
]
}
"cc" => "some string"validation returns thatvalue is not valid@dbrumann