RepositoryQuery: Add method __toString()
This commit is contained in:
parent
acf732e760
commit
43848989ae
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue