Describe the bug
Explain what you wanted to do and the wrong result you got.
When using ChoiceField in edit form, html select element choices are limited to the ones given a CrudController:
When using the same in a CollectionField, the Tom Select clear-button element is available making possible to choose an empty choice:
When choosing empty, this leads to following error:
Expected argument of type "string", "null" given at property path ...
To Reproduce
Make an entity with a ChoiceField.
Make another entity with a ManyToOne relation CollectionField the the previous entity.
Write CRUD controller for both of them check previously detailed error.
Describe the bug Explain what you wanted to do and the wrong result you got. When using ChoiceField in edit form, html select element choices are limited to the ones given a CrudController:
When using the same in a CollectionField, the Tom Select clear-button element is available making possible to choose an empty choice:
When choosing empty, this leads to following error:
To Reproduce