mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-689: Composite primary key does not work with @OneToOne #847
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 (Jul 13, 2010).
Jira issue originally created by user jasper:
A composite primary key does not seem to be working with @OneToOne. Example:
This example only makes $id the primary key, not a composit key of ($id, $id2).
@doctrinebot commented on GitHub (Jul 13, 2010):
Comment created by romanb:
Duplicate of DDC-117.
@doctrinebot commented on GitHub (Jul 13, 2010):
Issue was closed with resolution "Duplicate"
@doctrinebot commented on GitHub (Jul 13, 2010):
Comment created by romanb:
Note: @OneToOne (or any association annotation) on an id/foreign key field makes no sense at all. @OneToOne/@OneToMany/@ManyToOne/@ManyToMany are for object associations, not foreign keys.