/** * Returns SQL query. * @return string */ public final function __toString() { try { return $this->repository->getConnection()->translate($this->_export()); } catch (Exception $e) { trigger_error($e->getMessage(), E_USER_ERROR); } }