Doctrine 1
  1. Doctrine 1
  2. DC-680

HYDRATE_ARRAY causes timeout with no fields selected

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1, 1.2.2
    • Fix Version/s: None
    • Component/s: Query
    • Labels:
      None
    • Environment:
      Windows 7, Ubuntu 9.10 (Linux), PHP 5.2.10, Zend Framework 1.10

      Description

      Calling HYDRATE_ARRAY on a query with

      a) No values selected
      b) select('*')
      c) select('Table.*')

      causes the entire query object to be loaded, rather than just returning an array of all values. If a limit(1) is used, the correct result is returned. But as soon as it becomes a collection, the entire query object is returned.

      Code to produce problem..

      $query = Doctrine_Query::create()
              ->from('Order ord')
              ->limit(2)
              ->execute(array(), Doctrine_Core::HYDRATE_ARRAY);
              
              print_r($query);
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            David Ash
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: