public function getById($id) { if (!is_numeric($id)) { return $this->getByLogin($id); } return parent::getById($id); }
public function getById($id) { if (!is_numeric($id) && strlen($id) > 0) { $this->where('keyword', $id); return $this->one(); } return parent::getById($id); }