@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace ViewComponents\Doctrine\Processor; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\DBAL\Query\QueryBuilder; |
| 6 | - |
|
| 7 | 6 | use ViewComponents\ViewComponents\Data\Operation\FilterOperation; |
| 8 | 7 | use ViewComponents\ViewComponents\Data\Operation\OperationInterface; |
| 9 | 8 | use ViewComponents\ViewComponents\Data\Processor\ProcessorInterface; |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | $value = $operation->getValue(); |
| 21 | 21 | $operator = $operation->getOperator(); |
| 22 | 22 | $fieldName = $operation->getField(); |
| 23 | - $parameterName = str_replace(".", "_", $fieldName);// @see https://github.com/Nayjest/Grids/issues/111 |
|
| 23 | + $parameterName = str_replace(".", "_", $fieldName); // @see https://github.com/Nayjest/Grids/issues/111 |
|
| 24 | 24 | $src->andWhere("$fieldName $operator :$parameterName"); |
| 25 | 25 | $src->setParameter($parameterName, $value); |
| 26 | 26 | return $src; |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | |
| 8 | 8 | class DoctrineDataProvider extends AbstractDataProvider |
| 9 | 9 | { |
| 10 | - public function __construct(QueryBuilder $src, array $operations = []) |
|
| 10 | + public function __construct(QueryBuilder $src, array $operations = [ ]) |
|
| 11 | 11 | { |
| 12 | 12 | $this->operations()->set($operations); |
| 13 | 13 | $this->processingService = new DoctrineProcessingService( |