/** * Fetch the SQLSTATE associated with the last database operation. * * @return integer The last error code. */ public function errorCode() { return $this->connection->errorCode(); }