public static processQuery ( |
||
$parameters | ||
$query | Pinq\Queries\IQuery | |
$processor | Pinq\Providers\DSL\Compilation\Processors\Structure\IStructuralExpressionProcessor | |
return | Pinq\Queries\IOperationQuery | Pinq\Queries\IRequestQuery |
protected function inlineStructuralParameters(Queries\IQuery $query, Parameters\ResolvedParameterRegistry $parameters) { foreach ($this->structuralExpressionProcessors as $processor) { $query = Processors\Structure\StructuralExpressionInliner::processQuery($parameters, $query, $processor); } return $query; }
protected function inlineStructuralParameters(Queries\IQuery $query, Parameters\ResolvedParameterRegistry $parameters) { $scope = $query->getScope(); $scope = (new OrderDirectionStructuralInliner($parameters, $scope))->buildScope(); $scope = (new RangeStructuralInliner($parameters, $scope))->buildScope(); $query = $query->updateScope($scope); $query = StructuralExpressionInliner::processQuery($parameters, $query, new DynamicFunctionCallProcessor()); return $query; }