I have a field domain_name
in my form which must be unique.
So I have a unique validator like this :
$this->validatorSchema->setPostValidator(
new sfValidatorDoctrineUnique(
array(
'model' => 'Domain',
'column' => array('domain_name')
),
array('invalid' => 'This domain already exist.')));
But this validator does not recognize accents. For instance, the both domain names, example.fr
and éxample.fr
, are the same for him, and so it throws the error.
How can I do to make the difference between both (with accents and without accents) ?