Doctrine 1
  1. Doctrine 1
  2. DC-529

HYDRATE_SINGLE_SCALAR returns false for fetchOne() correct value for execute()

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.2.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
      mysql Ver 14.14 Distrib 5.1.37, for debian-linux-gnu (x86_64) using EditLine wrapper
      Apache/2.2.12 (Ubuntu)
      PHP 5.3.1
      Doctine 1.2 rev 7229

      Description

      This simple query:

      $vRetVal = Doctrine_Query::create()
      ->select('id')
      ->from('LocationCombined')
      ->where('name = ?', $pRegionName)
      ->fetchOne(array(), Doctrine_Core::HYDRATE_SINGLE_SCALAR);

      returns "false", but if I use
      ->execute(array(), Doctrine_Core::HYDRATE_SINGLE_SCALAR);

      I get the correct result in my variable.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Karman Kertesz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: