sfCustomUniqueValidator checks if a record exist in the database with all the mentionned fields.
ex: Check if a companie with company_name exist in country_id class: sfCustomUniqueValidator param: class: Companies //the class on which the search is performed nb_fields: 2 //the number of fields on which the comparison is done field_1: company_name //First field of the comparison field_2: country_id //Other country for the comparison
Located in /apps/frontend/lib/sfCustomUniqueValidator.php (line 18)
sfValidator | --sfCustomUniqueValidator
Documentation generated on Sat, 21 Mar 2009 21:24:58 +0100 by phpDocumentor 1.4.2