@@ 67-73 (lines=7) @@ | ||
64 | */ |
|
65 | protected function filterProperty(string $property, $value, QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null) |
|
66 | { |
|
67 | if ( |
|
68 | !$this->isPropertyEnabled($property, $resourceClass) || |
|
69 | !$this->isPropertyMapped($property, $resourceClass) || |
|
70 | !$this->isBooleanField($property, $resourceClass) |
|
71 | ) { |
|
72 | return; |
|
73 | } |
|
74 | ||
75 | if (in_array($value, ['true', '1'], true)) { |
|
76 | $value = true; |
@@ 101-107 (lines=7) @@ | ||
98 | */ |
|
99 | protected function filterProperty(string $property, $value, QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null) |
|
100 | { |
|
101 | if ( |
|
102 | !$this->isPropertyEnabled($property, $resourceClass) || |
|
103 | !$this->isPropertyMapped($property, $resourceClass) || |
|
104 | !$this->isNumericField($property, $resourceClass) |
|
105 | ) { |
|
106 | return; |
|
107 | } |
|
108 | ||
109 | if (!is_numeric($value)) { |
|
110 | $this->logger->notice('Invalid filter ignored', [ |