Hi,
I'm using Symfony 1.2 with Doctrine. I have an object with the i18n behaviour. If I have the following validators, it fails when saving the form with error "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'id' cannot be null" (it tries to save the object_translation before saving the object)
$this->validatorSchema['phone'] = new sfValidatorAnd(array(
new sfValidatorPhone(),
new sfValidatorString(array('max_length' => 50)),
), array('required'=> false));
If I have only one validator (any of both), it works:
$this->validatorSchema['phone'] = new sfValidatorPhone();
The same happens with two other fields. So there is something odd about sfValidatorAnd and i18n. Do you know what can be happening?
Thanks!