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

        Hide
        Benjamin Eberlei added a comment -

        Related Pull Request was closed: https://github.com/doctrine/doctrine2/pull/226

        Show
        Benjamin Eberlei added a comment - Related Pull Request was closed: https://github.com/doctrine/doctrine2/pull/226
        Hide
        Alexander added a comment -

        Should be fixed as soon as this is pulled:
        https://github.com/doctrine/doctrine2/pull/226

        Show
        Alexander added a comment - Should be fixed as soon as this is pulled: https://github.com/doctrine/doctrine2/pull/226
        Hide
        Benjamin Eberlei added a comment -

        This issue is referenced in Github Pull-Request GH-226
        https://github.com/doctrine/doctrine2/pull/226

        Show
        Benjamin Eberlei added a comment - This issue is referenced in Github Pull-Request GH-226 https://github.com/doctrine/doctrine2/pull/226
        Hide
        Benjamin Eberlei added a comment -

        Assigned to asm

        Show
        Benjamin Eberlei added a comment - Assigned to asm

          People

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

            Dates

            • Created:
              Updated:
              Resolved: