Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion features/doctrine/search_filter.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ Feature: Search filter on collections
@createSchema
Scenario: Custom search filters can use Doctrine Expressions as join conditions
Given there is a dummy object with 3 relatedDummies and their thirdLevel
When I send a "GET" request to "/dummy_ressource_with_custom_filter?custom=3"
When I send a "GET" request to "/dummy_resource_with_custom_filter?custom=3"
Then the response status code should be 200
And the response should be in JSON
And the JSON node "hydra:totalItems" should be equal to 1
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

#[ApiResource(
operations: [
new GetCollection(uriTemplate: '/dummy_ressource_with_custom_filter', itemUriTemplate: '/dummy_ressource_with_custom_filter/{id}'),
new Get(uriTemplate: '/dummy_ressource_with_custom_filter/{id}', uriVariables: ['id']),
new GetCollection(uriTemplate: '/dummy_resource_with_custom_filter', itemUriTemplate: '/dummy_resource_with_custom_filter/{id}'),
new Get(uriTemplate: '/dummy_resource_with_custom_filter/{id}', uriVariables: ['id']),
],
stateOptions: new Options(entityClass: Dummy::class)
)]
Expand Down