Object validation errors don't have a reasonable structure
When validating properties of objects with validators, the errors must be nested just like the properties that were validated.
If this is not the case, validation errors cannot be assigned to single properties in after doing the validation. This is needed for the very simple case of displaying input fields with errors in the frontend.
Updated by Christopher Hlubek over 12 years ago
A possible solution would be a special
Validation\ObjectError class extending
Validation\Error that allows for the following structure:
ObjectError( 'propertyErrors' => array( 'blog' => array( ObjectError( 'propertyErrors' => array( 'title' => array( Error("title too short", 1232423), Error("title has spelling errors", 14324323) ) ) ) ) ) )