public function gettypeslist() { $typeslist = new Types(); return $typeslist->fetchAll()->toArray(); }