>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? it would be onXXXXXX for everything as all would be prefixed. Also I might be biased as I also use Delphi and all the vents are prefixed with on there so It'+s immediately clear that it's an event.
>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. Now we have a problem. Let's put aside the fact that in this case I'm not using setter, because it's not relevant. If I go and blindly cast to integer then the non numeric only string will be 0, or if i have a string starting with digits + some characters and cast I'll get only the numeric part and in both cases it will validate. I can also check if it's numeric and then cast, but in this case I'm doing the job of validator. Also we will have the same problem if one expects a float although I suppose there will not be so many cases as with the integer. Of course assert:Integer would help. Regards, Miha -- 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
