mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3349: Possibility to override order of fields of composite ID produced by Mapping #4139
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 (Oct 13, 2014).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user tiger-seo:
So, the problem is when the one needs to use association key in composite identifier; they are added in the end of the identifier array, which is clearly not always suitable in regards to performance.
For example, following mapping:
will turn into sql as:
and there is no way to change the order of the primary from
PRIMARY KEY (date, country*code, page_id)toPRIMARY KEY (date, page_id, country*code)