Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ORM filtering by joined tables #14

Open
curzio-della-santa opened this issue Aug 27, 2019 · 0 comments
Open

Support ORM filtering by joined tables #14

curzio-della-santa opened this issue Aug 27, 2019 · 0 comments
Assignees

Comments

@curzio-della-santa
Copy link
Contributor

curzio-della-santa commented Aug 27, 2019

DQL syntax allows filtering on associated models:
https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/dql-doctrine-query-language.html#joins

But our entity repository does not still supports it.

This means that at present we have to first query the association for the filtered values, get the models, and then apply to the main table.

This is really unfriendly when using ORM, where the correct associations have already been mapped.

We should at least support it for one-to-many associations.

We should update
https://github.com/detailnet/dfw-persistence-module/blob/master/src/Doctrine/ORM/Repository/BaseEntityRepository.php#L530

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

No branches or pull requests

1 participant