/**
  * @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);
 }
예제 #2
0
파일: Provider.php 프로젝트: timetoogo/pinq
 protected function loadRequest(Queries\IRequestQuery $query, Queries\IResolvedParameterRegistry $resolvedParameters)
 {
     $scopedTraversable = $this->evaluateScope($query->getScope(), $resolvedParameters);
     return RequestEvaluator::evaluate($scopedTraversable, $query->getRequest(), $resolvedParameters);
 }