mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Invalid multiple primary keys #6754
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 @RSalo on GitHub (Jun 11, 2021).
Hello. I have 2 primary keys: ID and blob UUID. And have 2 entities User and Article. Then for Article i generate relation ManyToOne and have code:
Problem is that i have invalid mapping:
Is it a bug or am I do something wrong? Thanks!
@RSalo commented on GitHub (Jun 11, 2021):
Similar to https://github.com/doctrine/orm/issues/4088
@dexy86 commented on GitHub (Nov 23, 2022):
Hello
@RSalo it is but again it isn't
in #4088 in both entities you have all the columns a bit different naming
but in this example you don't have same values in both entities
i have the same issue, and if i try to use JoinColumns with multiple columns i get an error which makes sense cause i don't have (e.g. uuid in both of the entities)
how can we do many2one or any other relations if you can't fetch by composite primary key if needed
i hope i have explained it correctly and pardon me if i am wrong 🙇
@khal3d commented on GitHub (Sep 1, 2023):
Have you managed to resolve this issue? doctrine/orm v2.16.1 and I'm facing the same issue