/** * @param int $id * @throws DbalException * @return array */ public function readById($id) { if (!intval($id)) { throw new DbalException('Id required'); } return $this->model->readFirst($this->table, $this->idColum, intval($id), true); }