Skip to content

Conversation

@jsampedro77
Copy link

@jsampedro77 jsampedro77 commented Oct 28, 2025

The resource filters were lost when using a DTO as Resource and using stateOptions with 'entityClass' to specify which is the real doctrine class.

Q A
Branch? >=4.1.8
License MIT

When using a DTO as a resource and the stateOptions attribute to make the filters work with the real entity.

    stateOptions: new Options(entityClass: Property::class),

After this change #7109 , all the filters stopped being recognized. It seems that the code was refactored to use a trait, but the usage of this trait in the FieldsBuilder was missing.

@jsampedro77 jsampedro77 force-pushed the fix-fields-builder-state-options branch from f2149f5 to 0e51804 Compare October 28, 2025 07:53
The resource filters were lost when using a DTO as Resource and using stateOptions with 'entityClass' to specify which is the real doctrine class.
@jsampedro77 jsampedro77 force-pushed the fix-fields-builder-state-options branch from 0e51804 to c89d93d Compare October 28, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant