php - How to distinguish accents in sfValidatorDoctrineUnique? -
i have field domain_name
in form must unique. have unique validator :
$this->validatorschema->setpostvalidator( new sfvalidatordoctrineunique( array( 'model' => 'domain', 'column' => array('domain_name') ), array('invalid' => 'this domain exist.')));
but validator not recognize accents. instance, both domain names, example.fr
, éxample.fr
, same him, , throws error.
how can make difference between both (with accents , without accents) ?
if, j0k says it's not sql issue, may want build own validator following guideline: http://symfony.com/legacy/doc/more-with-symfony/1_4/en/05-custom-widgets-and-validators#chapter_05_building_a_simple_widget_and_validator , using regex catch accents.
Comments
Post a Comment