DDC-1329: Documentation for @JoinColumn may be incorrect #1667

Closed
opened 2026-01-22 13:21:36 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 13, 2011).

Originally assigned to: @lcobucci on GitHub.

Jira issue originally created by user djones:

The Documentation for @JoinColumn annotation states:
"This annotation is not required. If its not specified the attributes name and referencedColumnName are inferred from the table and primary key names."

However, this seems not to be correct. If you have non-standard name for the @Id columns for a @OneToMany/@ManyToMany the name and referencedColumnName are not correctly inferred.

https://gist.github.com/e61bf8f4462870ffd4f3

Originally created by @doctrinebot on GitHub (Aug 13, 2011). Originally assigned to: @lcobucci on GitHub. Jira issue originally created by user djones: The Documentation for @JoinColumn annotation states: "This annotation is not required. If its not specified the attributes name and referencedColumnName are inferred from the table and primary key names." However, this seems not to be correct. If you have non-standard name for the @Id columns for a @OneToMany/@ManyToMany the name and referencedColumnName are not correctly inferred. https://gist.github.com/e61bf8f4462870ffd4f3
admin added the Invalid label 2026-01-22 13:21:36 +01:00
admin closed this issue 2026-01-22 13:21:37 +01:00
Author
Owner

@malukenho commented on GitHub (Jan 5, 2017):

@Ocramius is not valid anymore, also gist is not available.

@malukenho commented on GitHub (Jan 5, 2017): @Ocramius is not valid anymore, also gist is not available.
Author
Owner

@lcobucci commented on GitHub (Jan 5, 2017):

@malukenho thanks 😉

Closing as invalid since documentation has already been updated.

@lcobucci commented on GitHub (Jan 5, 2017): @malukenho thanks 😉 Closing as `invalid` since documentation has already been updated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1667