Hi I was wondering whether it was appropriate/possible to use a filter on a form element to convert the data into a database ID before passing to the model. For example, an input text field for car manufacturer where the user types 'Ford' or 'Honda' etc. and a filter can run to convert this into a database ID out of the car manufacturer table before passing to the model.
Not sure if this is the right way to do it because of a couple of reasons: At the moment, if there are any validation errors, it puts back on the form the database ID rather than what the user typed. Is there a setting to say only filter when everything is valid? Secondly, I already have a validator which goes off to the database to check what the user typed is something out of the car manufacturer table (and it would save an additional query if I could store the database ID from this query somehow). Any pointers would be much appreciated. Thanks Colin -- View this message in context: http://www.nabble.com/Form-Filter-for-converting-to-database-IDs-tp21874863p21874863.html Sent from the Zend Framework mailing list archive at Nabble.com.
