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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: