diff --git a/include/class.orm.php b/include/class.orm.php index 38e1d931d49db8057591de5d9d250e911519d3f0..75078e272ecab101ac68b0135b4937a135c9e90d 100644 --- a/include/class.orm.php +++ b/include/class.orm.php @@ -1368,6 +1368,9 @@ class InstrumentedList extends ModelInstanceManager { $object->set($this->key, $this->id); + if (!$object->__new__) + $object->save(); + if ($at !== false) $this->cache[$at] = $object; else