Doctrine 1

Getting Doctrine_Validator_Exception on Doctrine_Record::replace() when using unique