public function getEditors() { if ($this->editors === null) { $db = new DbDatabase(); $this->editors = array(); $res = $db->getPersonsByTournamentIdRes($this->getDbId()); if ($res) { while ($row = $res->fetch_object()) { $this->editors[] = new DbPerson($row); } } } return $this->editors; }