Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1329

Documentation for @JoinColumn may be incorrect

    Details

    • Type: Documentation Documentation
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Documentation, ORM
    • Security Level: All
    • Labels:
      None

      Description

      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

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Damon Jones
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: