/** * @param bool $random * @return \Tk\Db\ArrayObject */ protected function getList($random = false) { $filter = $this->table->getFilterValues(); if ($this->term) { $filter['courseId'] = $this->term->courseId; } $tool = $this->table->getDbTool('`name`'); if ($random) { $tool->setOrderBy('RAND()'); } //return \Ext\Db\Company::getMapper()->findFiltered($filter, $tool); return $this->findCompanies($filter, $tool); }