mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Support join tables in Doctrine Query Language #7063
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 @tessiancrow on GitHub (Oct 17, 2022).
Feature Request
Summary
Why is it not possible to specify a table name in the ->createQueryBuilder, but rather a class? Join tables do not have their own class and if you want to make subqueries with DQL, for example, you have to rely on ->prepare. It would be cool to be able to use table names here as well.
@derrabus commented on GitHub (Oct 17, 2022):
How do you map join tables if you don't have a class for them?
@tessiancrow commented on GitHub (Oct 17, 2022):
In my specific case, there is no mapping to any class, because the join table is generated from the association.