public function visitHydration(SpecificationInterface $specification, SpecificationWalker $walker, $query)
 {
     $query->hydrate($specification->getValue());
 }
コード例 #2
0
 public function visitFilter(SpecificationInterface $specification, SpecificationWalker $walker, $query)
 {
     $mappedOperator = $this->filterMap[$specification->getOperator()];
     $query->expr()->{$mappedOperator}($specification->getField(), $specification->getValue());
 }
コード例 #3
0
 public function visitFilter(SpecificationInterface $specification, SpecificationWalker $walker, $query)
 {
     $this->andWhere($query, $specification->getOperator(), $specification->getField(), $specification->getValue());
 }