'constraints' option not valid on form-classes with no entity

The 'constraints' option is not valid using form-classes without entity.