Hi, I have a user enter a postal code or zip code in my form. Based on this entry, I am calling a Geocoding service and obtaining long/lat coordinates. If the geocoder doesn't return coordinates, I want to return a validation error. Otherwise, the postal code and the coordinates are stored in the database.
I have thought the best way to do this would be use a post validator, but I'm trying to figure out how to inject the long/lat coordinates into my object. I've unset the long/lat coordinates in the form, because they are not meant for user entry or widget representation, but I need to access these fields somehow in order to set them in the object. One way around this I guess would be to keep the fields in the widget schema, make them optional, and then return them as cleaned values in my post validator. I'm wondering if anyone has done anything like this and if you can recommend any approaches? Thanks, Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---
