On 04.11.2010 15:29, Bernhard Schussek wrote:
> 2010/11/4 Henrik Bjornskov <[email protected]>:
>> yes but that also mean that the form framework can validate the raw
>> value before setting it?
> 
> Unfortunately not. The validator does not (and cannot, see the above
> discussion) support validation of theoretical object contents ("what
> if the object contained this data").
> 
> It does support this feature for single properties (see
> ValidatorInterface::validatePropertyValue()), but not for whole
> objects or object graphs.

And what about using a new stdClass object, putting all the data on it,
and validating that? How would the validator distinguish it from an
Entity object? If all the properties are public I assume it doesn't try
and use getters/setters?

Cheers

-- 
Jordi Boggiano
@seldaek :: http://seld.be/

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to