Symfony2: validate an object that is not an entity
- by Marronsuisse
I am using CraueFormFlowBundle to have a multiple page form, and am trying to do some validation on some of the fields but can't figure out how to do this. The object that needs to be validated isn't an Entity, which is causing me trouble.
I tried adding a collectionConstraint in the getDefaultOption function of my form type class, but this…