diff --git a/library/Icinga/Repository/RepositoryQuery.php b/library/Icinga/Repository/RepositoryQuery.php index 4c24c8617..f5818bf58 100644 --- a/library/Icinga/Repository/RepositoryQuery.php +++ b/library/Icinga/Repository/RepositoryQuery.php @@ -73,6 +73,16 @@ class RepositoryQuery implements QueryInterface, SortRules, FilterColumns, Itera $this->iterator = clone $this->iterator; } + /** + * Return a string representation of this query + * + * @return string + */ + public function __toString() + { + return (string) $this->query; + } + /** * Return the real query being used *