The CPU cycles can be avoided if you have a duplicate of the validation rules in the password setter that will only hash the password (using cycles) when the password works, otherwise setting the persisted field to null?
Means you double up the password rules though. Hm. t On Thu, Nov 4, 2010 at 07:04, Lukas Kahwe Smith <[email protected]> wrote: > > err actually nevermind. the approach bernhard explains is different from > what i am describing. i was talking about being able to compare the version > of the data as it was fetched from the database with the version that is > being submitted to the database to determine if additional processing is > necessary. and bernhard is suggesting to always set the raw version on a > property that has the validation and then set another property which is > persisted on which the additional processing is done. > > i do see some benefit in what bernhard is doing, the only draw back is that > the processing will even be triggered if the validation fails. i can see > that sometimes the processing is expensive in terms of cpu cycles or > potential fees having to be paid or both. > > regards, > Lukas Kahwe Smith > [email protected] > > > > -- > 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]<symfony-devs%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- 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
