Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA3
    • Fix Version/s: 2.0-ALPHA4
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      "Entity\User\AbstractUser" is a base entity for user records, "Entity\User\Person" extends AbstractUser (Single Table inheritance in this case).
      The "Setting" property is a OneToOne relation with another entity.

      Now when I call this DQL:
      SELECT u, t FROM Entity\User\AbstractUser u LEFT JOIN u.Setting t

      The ObjectHydrator fails in line 276 ("if ( ! $relation->isOneToOne()) {"...) with "PHP Fatal error: Call to a member function isOneToOne() on a non-object in .../lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php".

      It works when using the sub class for the query:
      SELECT u, t FROM Entity\User\Person u LEFT JOIN u.Setting t

        Activity

        Nico Kaiser created issue -
        Roman S. Borschel made changes -
        Field Original Value New Value
        Affects Version/s 2.0-ALPHA3 [ 10029 ]
        Fix Version/s 2.0-ALPHA4 [ 10036 ]
        Roman S. Borschel made changes -
        Priority Major [ 3 ] Critical [ 2 ]
        Roman S. Borschel made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Nico Kaiser made changes -
        Description "Entity\User\AbstractUser" is a base entity for user records, "Entity\User\Person" extends AbstractUser (Single Table inheritance in this case).
        The "Setting" property is a OneToOne relation with another entity.

        Now when I call this DQL:
        {{SELECT u, t FROM Entity\User\AbstractUser u LEFT JOIN u.Setting t}}

        The ObjectHydrator fails in line 276 ("if ( ! $relation->isOneToOne()) {"...) with "PHP Fatal error: Call to a member function isOneToOne() on a non-object in .../lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php".

        It works when using the sub class for the query:
        {{SELECT u, t FROM Entity\User\Person u LEFT JOIN u.TopnewsSetting t}}
        "Entity\User\AbstractUser" is a base entity for user records, "Entity\User\Person" extends AbstractUser (Single Table inheritance in this case).
        The "Setting" property is a OneToOne relation with another entity.

        Now when I call this DQL:
        {{SELECT u, t FROM Entity\User\AbstractUser u LEFT JOIN u.Setting t}}

        The ObjectHydrator fails in line 276 ("if ( ! $relation->isOneToOne()) {"...) with "PHP Fatal error: Call to a member function isOneToOne() on a non-object in .../lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php".

        It works when using the sub class for the query:
        {{SELECT u, t FROM Entity\User\Person u LEFT JOIN u.Setting t}}
        Roman S. Borschel made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 10542 ] jira-feedback [ 15499 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15499 ] jira-feedback2 [ 17363 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17363 ] jira-feedback3 [ 19620 ]

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Nico Kaiser
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: