1
0
mirror of synced 2025-01-29 19:41:45 +03:00

Change if for else if on synchronizeWithArray

This commit is contained in:
jackbravo 2007-12-09 17:46:28 +00:00
parent 002893cf86
commit 75ccd8cd43

View File

@ -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;