Skip to content

Commit 3967d1f

Browse files
abluchetsoyuka
authored andcommitted
Unused namespace Request
1 parent 2076d9a commit 3967d1f

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

features/doctrine/boolean_filter.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Feature: Boolean filter on collections
8484
}
8585
}
8686
"""
87+
And the JSON node "hydra:totalItems" should be equal to 15
8788

8889
Scenario: Get collection by dummyBoolean false
8990
When I send a "GET" request to "/dummies?dummyBoolean=false"

features/doctrine/exists_filter.feature

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ Feature: Exists filter on collections
2424
"maxItems": 0
2525
},
2626
"hydra:view": {
27-
"@id": {"pattern": "^/dummies\\?dummyBoolean[exists]=0"},
28-
"@type": {"pattern": "^hydra:PartialCollectionView$"}
27+
"type": "object",
28+
"properties": {
29+
"@id": {"pattern": "^/dummies\\?dummyBoolean%5Bexists%5D=0$"},
30+
"@type": {"pattern": "^hydra:PartialCollectionView$"}
31+
}
2932
}
3033
}
3134
}
@@ -51,8 +54,11 @@ Feature: Exists filter on collections
5154
"minItems": 3
5255
},
5356
"hydra:view": {
54-
"@id": {"pattern": "^/dummies\\?dummyBoolean[exists]=1"},
55-
"@type": {"pattern": "^hydra:PartialCollectionView$"}
57+
"type": "object",
58+
"properties": {
59+
"@id": {"pattern": "^/dummies\\?dummyBoolean%5Bexists%5D=1&page=1$"},
60+
"@type": {"pattern": "^hydra:PartialCollectionView$"}
61+
}
5662
}
5763
}
5864
}

src/Bridge/Doctrine/Orm/Filter/ExistsFilter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Doctrine\ORM\Mapping\ClassMetadataInfo;
1818
use Doctrine\ORM\QueryBuilder;
1919
use Psr\Log\LoggerInterface;
20-
use Symfony\Component\HttpFoundation\Request;
2120
use Symfony\Component\HttpFoundation\RequestStack;
2221

2322
/**

0 commit comments

Comments
 (0)