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 -
        Hide
        Benjamin Eberlei added a comment -

        Assigned to asm

        Show
        Benjamin Eberlei added a comment - Assigned to asm
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Assignee Benjamin Eberlei [ beberlei ] Alexander [ asm89 ]
        Priority Major [ 3 ] Critical [ 2 ]
        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
        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 -

        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
        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 ]

        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-1505, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: