But how can I check if the needed error happened?
Loop through the array of validation errors and check if the error was
triggered by the needed Validator?
Hope this is not the only way
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
Aaaargh,
I've created custom PostValidator, but when I'm throwing my custom
exception from that post validator, symfony catches it first, and I
can not catch it in the action.
I've tried to create custom exception class that extends
sfValidatorError class (class sfValidatorLicenseError extends
sfV
Oh, missed your message.
Thank you very much, I'll give a try for this approach.
Thanks!
--
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 users" group.
Hello group.
I'm reading symfony docs, but can't get what is the difference between
sfFormDoctrine methods:
doSave()
save()
updateObject()
What is the order of their execution?
Thanks a lot
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-projec
Thanks a lot, Daniel,
but in my case I have to trigger different functions depending on the
results of validation.
Lets say I have 2 fields: field_1 and field_2.
If field_1 passed validation and field_2 didn't - action needs to
trigger function a() and show default template.
If field_2 didn't pass
Hello guys.
I have symfony 1.4 with Doctrine.
Basically, in my form I need to make some specific validation upon
several fields. And in some cases (when these specific form errors
happen) module's action should perform necessary tasks.
So I'm wondering how can I know that specific error happened?