Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1505

EntityManager->find returning null for entity on the inverse side of a OneToOne association

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: Git Master
    • Fix Version/s: 2.x, Git Master
    • Component/s: ORM
    • Labels:
      None

      Description

      BasicEntityPersister.getJoinSQLForJoinColumns treats joinColumn nullable setting as defaulting to false:

      if(isset($joinColumn['nullable']) && $joinColumn['nullable'])

      { return 'LEFT JOIN'; }

      I think it should be:

      if(!isset($joinColumn['nullable']) || $joinColumn['nullable']){ return 'LEFT JOIN'; }

        Activity

        Chris Richard created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Assignee Benjamin Eberlei [ beberlei ] Alexander [ asm89 ]
        Priority Major [ 3 ] Critical [ 2 ]
        Alexander made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.x [ 10090 ]
        Fix Version/s Git Master [ 10100 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13210 ] jira-feedback [ 15123 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15123 ] jira-feedback2 [ 16987 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16987 ] jira-feedback3 [ 19240 ]

          People

          • Assignee:
            Alexander
            Reporter:
            Chris Richard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: