Doctrine 1
  1. Doctrine 1
  2. DC-352

Doctrine_RawSql/Caching fatal error

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 1.2.1
    • Fix Version/s: 1.2.2
    • Component/s: Caching, Native SQL
    • Labels:
      None
    • Environment:
      Solaris

      Description

      Doctrine_RawSql::calculateResultCacheHash tries to call $this->getSql() - an undefined method - on line 444 of RawSql.php.

        Activity

        Hide
        Witold Wasiczko added a comment - - edited

        I get the same error during:
        $q = new Doctrine_RawSql();
        $q->useResultCache(true);

        I fixed it, by change from:
        $sql = $this->getSql();
        to:
        $sql = $this->getDql();

        In Doctrine_RawSql 444 line.

        Show
        Witold Wasiczko added a comment - - edited I get the same error during: $q = new Doctrine_RawSql(); $q->useResultCache(true); I fixed it, by change from: $sql = $this->getSql(); to: $sql = $this->getDql(); In Doctrine_RawSql 444 line.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Jonathan Shelly
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: