mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
JoinColumn / ManyToOne specify custom ON condition #7153
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 @realjjaveweb on GitHub (May 18, 2023).
Feature Request
Summary
For relations, it is expected that
Doctrine\ORM\Mapping\JoinColumnis specified - butJoinColumnexpects a relational column, however for some relations it is also needed to specify other join conditions (think something likeON( ... AND (t.state='active'))).So maybe it's not about altering the
JoinColumn, but altering the relation attributes likeManyToOne- have an option to specify some custom joining.