Commit 75ccd8cd authored by jackbravo's avatar jackbravo

Change if for else if on synchronizeWithArray

parent 002893cf
......@@ -999,8 +999,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
{
if (isset($this->_data[$fieldName])) {
$this->_data[$fieldName] = array();
}
if (isset($this->_references[$fieldName])) {
} else if (isset($this->_references[$fieldName])) {
if ($this->_references[$fieldName] instanceof Doctrine_Record) {
// todo: delete related record when saving $this
$this->_references[$fieldName] = self::$_null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment