function updateContent($obj) { $link = new link(); $link->objectInit($obj); unset($link->id); $this->content[$obj->id] = $link; $obj->save(); }