Hi,

2011/4/14 Miha Vrhovnik <[email protected]>:
> - event names should be prefixed with on as they are in the rest of the
> framework. (I can do a PR if somebody of core devs does an ack on this)

I'm not sure the events can be clearly distinguished then. It would be
preSetData, onSetData and postSetData. How can one easily understand
(and remember) their difference?

> - supposed you have an entity with a property that has @assert:Type(integer)
> and the data for that property is coming from the hidden or choice field,
> this will now fail with the latest refactoring of in the forms. This does
> work in current implementation and it did work before in experimental
> branch, one of the last commits broke it.

The form can't know that you want the data to be converted to
integers, so you have to convert the data yourself in your setter.
There will be a @assert:Integer constraint that also accepts integer
strings.

Bernhard

-- 
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