Change if for else if on synchronizeWithArray
This commit is contained in:
parent
002893cf86
commit
75ccd8cd43
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue