Doctrine 1
  1. Doctrine 1
  2. DC-267

Strange behaviour with HYDRATE_ARRAY

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0-BETA3
    • Fix Version/s: 1.2.0-RC1
    • Component/s: Relations
    • Labels:
      None
    • Environment:
      Linux, Oracle 10g

      Description

      Some values of a join can be found in root component some in the relations - even for the same value

      $q = Doctrine_Query::create()
      -> select ('a.id, b.code, b.code as also_b_code')
      -> from('Foo a')
      -> innerJoin('a.Bar b')
      ->setHydrationMode(Doctrine::HYDRATE_ARRAY);

      $res = $q->execute();

      id is primary key of table Foo and code is primary key of table Bar

      The result will contain id AND also_b_code as $res[0]['id'] and $res[0]['also_b_code'] but code is under $res[0]['Bar']['code']

      Is there any way to get Doctrine::HYDRATE_ARRAY to work as under 1.1?

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: