Doctrine 1
  1. Doctrine 1
  2. DC-714

Fatal error(Call to a member function quoteIdentifier() on a non-object), on batchUpdateIndex(), file search.php on line 246

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.2.3
    • Component/s: Searchable
    • Labels:
      None
    • Environment:
      Windows XP, php 5.2.4, Apache 2.0

      Description

      I am creating a search in such a way that's:
      $tenders = Doctrine::getTable('TableTenders');
      $tenders->batchUpdateIndex();

      after excute i have fatal error: Fatal error: Call to a member function quoteIdentifier() on a non-object in E:\home\tender.loc\www\engine\class\Doctrine\Doctrine\Search.php on line 246

      When i am opened Search.php on 246 line, i saw : $conn->quoteIdentifier($this->_table->getTableName())

      var_dump($conn) return NULL

      I climbed up the code and saw the error: $conn = $this->_options['connection']; (line 228)
      i change this on $conn = $this->_options['table']->getConnection();

      now works fine

      Sory for my english

        Activity

        Hide
        Jonathan H. Wage added a comment -

        Thanks for the issue and patch!

        Show
        Jonathan H. Wage added a comment - Thanks for the issue and patch!

          People

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

            Dates

            • Created:
              Updated:
              Resolved: