/**
  * Presents EntityQuery as SelectQuery object
  *
  * @return SelectQuery
  */
 function toSelectQuery()
 {
     return $this->makeSelect($this->projection->isEmpty() ? Projection::entity($this->entity) : $this->projection);
 }