context->table('stages')->insert([ 'name' => @$params['name'], 'description' => @$params['description'] ]); return $database->createModel('Stage', $activerow); } public function getName() { return $this->activerow->name; } public function setName($name) { return $this->activerow->update(['name' => $name]); } public function getImagename() { return $this->activerow->imagename; } public function setImagename($name) { return $this->activerow->update(['imagename' => $name]); } public function getId() { return $this->activerow->stage; } public function getDescription() { return $this->activerow->description; } public function setDescription($desc) { return $this->activerow->update(['description' => $desc]); } }