mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2404: Filter using join tables #3016
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Apr 19, 2013).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user hosiplan:
Allow filters to add join tables to sql queries for filtering.
Let's have Brand entity, and BrandText entity. Text is localisation for each Brand. If there is no BrandText with bt.isPublic and bt.web_id = 123 I wanna filter it globally and not even allow to load Brand entity.
This cannot be solved by using DQL, because I need to affect lazily loaded associations, for example in templates
Accessing $product->brand-> in template should resolve to NULL, when there is no BrandText.isPublic = 1.
This could be solved by allowing filters to add joins to queries. Should I prepare a pull request?