RepositoryQuery: Add method __toString()

This commit is contained in:
Johannes Meyer 2015-12-03 13:54:48 +01:00
parent acf732e760
commit 43848989ae
1 changed files with 10 additions and 0 deletions

View File

@ -73,6 +73,16 @@ class RepositoryQuery implements QueryInterface, SortRules, FilterColumns, Itera
$this->iterator = clone $this->iterator; $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 * Return the real query being used
* *