public function affectedRows() { $res = $this->db->affectedRows(); $this->assertError($res); return $res; }