Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2256

[GH-554] Fixed ObjectHydrator when namespace alias is given.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of beregond:

      Url: https://github.com/doctrine/doctrine2/pull/554

      Message:

      Fixes problem when executing native query:
      ```php
      $rsm = new ResultSetMapping();

      $rsm->addEntityResult('DbBundle:Player', 'p');
      $rsm->addFieldResult('p', 'id', 'id');
      $rsm->addFieldResult('p', 'name', 'name');

      $rsm->addJoinedEntityResult('DbBundle:User', 'u', 'p', 'user');
      $rsm->addFieldResult('u', 'user_id', 'id');

      $em->createNativeQuery('...', $rsm);
      ```

      Hydrator couldn't find cached metadata, when "joined entity result" class name wasn't fully qualified name (as in the example above).

        Activity

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-554] was closed:
        https://github.com/doctrine/dbal/pull/554

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-554] was closed: https://github.com/doctrine/dbal/pull/554
        Show
        Fabio B. Silva added a comment - Merged : https://github.com/doctrine/doctrine2/commit/dea37ed9e84922f37ef21740671e5e29c94454d3
        Hide
        Benjamin Eberlei added a comment -

        A related Github Pull-Request [GH-554] was closed
        https://github.com/doctrine/doctrine2/pull/554

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-554] was closed https://github.com/doctrine/doctrine2/pull/554

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: