Details
Description
Doctrine_Record::copy() ignores IDENTIFIER_SEQUENCE for NULLifying the id field on copy. In our environment, it was fixed by adding Doctrine_Core::IDENTIFIER_SEQUENCE to the check at the start of the copy() method:
public function copy($deep = false) { $data = $this->_data; $idtype = $this->_table->getIdentifierType(); ! if ($idtype === Doctrine_Core::IDENTIFIER_AUTOINC || ! $idtype === Doctrine_Core::IDENTIFIER_SEQUENCE) { $id = $this->_table->getIdentifier(); unset($data[$id]); }