public function rename($newname) { $this->name = $newname; $result = $this->update(); return $result; }