Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of KamilKopaczyk:

      Url: https://github.com/doctrine/doctrine2/pull/993

      Message:

      If $referencedColumnName = 'id' by default, it doesn't make sense to make checks like:
      ```php
      if (empty($joinColumn['referencedColumnName'])) {
      ```
      (ClassMetaDataInfo file)


      Considering you map your column
      ```
      @ORM\JoinColumn(onDelete="CASCADE")
      ```
      You'll get JoinColumn with 'id' value, which doesn't let doctrine use naming strategies for referenced column names

        Activity

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: