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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -