From: avl Date: Sun, 1 Feb 2009 21:41:49 +0000 (+0200) Subject: Inline CheckBoxes fix X-Git-Tag: 0.6~155 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=ace847221e472f5b45e363f7d9878c198e5c74a9;p=ipf-legacy-orm.git Inline CheckBoxes fix --- diff --git a/ipf/orm/record.php b/ipf/orm/record.php index a8baf48..9eeb8f1 100644 --- a/ipf/orm/record.php +++ b/ipf/orm/record.php @@ -863,21 +863,18 @@ abstract class IPF_ORM_Record extends IPF_ORM_Record_Abstract implements Countab $this->assignIdentifier((array) $value); continue; } - if ($deep && $this->getTable()->hasRelation($key)) { $this->get($key)->synchronizeWithArray($value); } else if ($this->getTable()->hasField($key)) { $this->set($key, $value); } } - // eliminate relationships missing in the $array foreach ($this->_references as $name => $obj) { if ( ! isset($array[$name])) { unset($this->$name); } } - if ($refresh) { $this->refresh(); }