protected function getCondition() { if ($cond = $this->model->getCondition()) { return " WHERE " . $cond . " "; } return ""; }