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

        Damon Jones created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 12918 ] jira-feedback [ 13959 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13959 ] jira-feedback2 [ 15823 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15823 ] jira-feedback3 [ 18079 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1329, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated: