Validate size of property (collection)


I wonder how to validate size of an entity property which is a collection (datagrid in form) when the user edit the entity ?

@Size and @NotNull on property doesnt work. I don’t see any related property on datagrid.

Regards, Stef.

Maybe this topic will help you: @Size Constraint not working

That’s it, thank you.