diff --git a/include/class.orm.php b/include/class.orm.php index c71f0e1e60f4e8e5e0aac99a8bfca98d89fcba8b..9255b8fe95d03ac094ef85b8c6fb7a628fa02b3f 100644 --- a/include/class.orm.php +++ b/include/class.orm.php @@ -429,11 +429,7 @@ class VerySimpleModel { } // Capture the object under the object's field name $this->ht[$field] = $value; - if ($value->__new__) - // save() will be performed when saving this object - $value = null; - else - $value = $value->get($j['fkey'][1]); + $value = $value->get($j['fkey'][1]); // Fall through to the standard logic below } // Capture the foreign key id value