mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-783: when a column is the foreign key reference to 2 tables, doctrine 2 can't create entity #961
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 (Sep 1, 2010).
Jira issue originally created by user minxuan.guo:
when a column in table A is the foreign key reference to 2 or more tables, doctrine 2 can't create entity for table A
for instance:
I have a column named idBC in table A, which is the foreign key reference to the idB of table B and the idC of table C
when i "...orm:convert-mapping --from-database annotation..."
I got
Property "idBc " in "A" was already declared, but it must be declared only once
@doctrinebot commented on GitHub (Sep 1, 2010):
Comment created by @beberlei:
yes, see http://www.doctrine-project.org/projects/orm/2.0/docs/reference/limitations-and-known-issues/en#current-limitations:foreign-keys-as-identifiers
this is currently not supported and is developed in the DDC-117 experimental branch. However that branch does not have support for Database Re-engineering yet.
@doctrinebot commented on GitHub (Sep 1, 2010):
Issue was closed with resolution "Fixed"