I have a form to create a new entity. That entity has a collection of other entities that are also entered in that form.
I want to use the validation options of the
Just add annotation assert like following
/** * @Assert\Count( * min = "1", * minMessage = "You must specify at least one" * ) * @Assert\Valid * */ protected $name_of_collection_property;