/** * @param Queries\IRequestQuery $query * * @return IRequestQueryCompiler */ protected function getRequestQueryCompiler(Queries\IRequestQuery $query) { /** @var TableSourceInfo $source */ $source = $query->getScope()->getSourceInfo(); $select = new Select($this->connection, $source, new Parameters\ParameterCollection()); return new RequestCompiler($query, $select); }
protected function loadRequest(Queries\IRequestQuery $query, Queries\IResolvedParameterRegistry $resolvedParameters) { $scopedTraversable = $this->evaluateScope($query->getScope(), $resolvedParameters); return RequestEvaluator::evaluate($scopedTraversable, $query->getRequest(), $resolvedParameters); }