@@ -64,7 +64,7 @@ |
||
| 64 | 64 | /** |
| 65 | 65 | * @inheritDoc |
| 66 | 66 | */ |
| 67 | - public function resolve(ExecutableDefinitionInterface $executableDefinition,ObjectDefinitionInterface $node, Endpoint $endpoint): array |
|
| 67 | + public function resolve(ExecutableDefinitionInterface $executableDefinition, ObjectDefinitionInterface $node, Endpoint $endpoint): array |
|
| 68 | 68 | { |
| 69 | 69 | $class = $node->getClass(); |
| 70 | 70 | $filters = []; |
@@ -70,10 +70,10 @@ |
||
| 70 | 70 | $paramName = sprintf('%s_ids_%s', $column, mt_rand()); |
| 71 | 71 | if ($condition->getOp() === NodeComparisonOperatorType::IN) { |
| 72 | 72 | $qb->andWhere(sprintf(':%s MEMBER OF %s.%s', $paramName, $alias, $column)) |
| 73 | - ->setParameter($paramName, $ids); |
|
| 73 | + ->setParameter($paramName, $ids); |
|
| 74 | 74 | } else { |
| 75 | 75 | $qb->andWhere(sprintf(':%s NOT MEMBER OF %s.%s', $paramName, $alias, $column)) |
| 76 | - ->setParameter($paramName, $ids); |
|
| 76 | + ->setParameter($paramName, $ids); |
|
| 77 | 77 | } |
| 78 | 78 | break; |
| 79 | 79 | } |
@@ -75,17 +75,17 @@ |
||
| 75 | 75 | |
| 76 | 76 | /** @var NodeBuilder $rootNode */ |
| 77 | 77 | $config->scalarNode('target') |
| 78 | - ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions') |
|
| 79 | - ->isRequired(); |
|
| 78 | + ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions') |
|
| 79 | + ->isRequired(); |
|
| 80 | 80 | $config->variableNode('filters') |
| 81 | - ->info('Filters configuration'); |
|
| 81 | + ->info('Filters configuration'); |
|
| 82 | 82 | $config->integerNode('limit')->info('Max number of records allowed for first & last')->defaultValue($this->limit); |
| 83 | 83 | $config->scalarNode('parent_field') |
| 84 | - ->info('When is used in sub-fields should be the field to filter by parent instance'); |
|
| 84 | + ->info('When is used in sub-fields should be the field to filter by parent instance'); |
|
| 85 | 85 | $config->enumNode('parent_relation') |
| 86 | - ->info('When is used in sub-fields should be the type of relation with the parent field') |
|
| 87 | - ->defaultValue(self::ONE_TO_MANY) |
|
| 88 | - ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]); |
|
| 86 | + ->info('When is used in sub-fields should be the type of relation with the parent field') |
|
| 87 | + ->defaultValue(self::ONE_TO_MANY) |
|
| 88 | + ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |