Doctrine 1
  1. Doctrine 1
  2. DC-128

search is using default connection for query not the indexed table's connection

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.4
    • Fix Version/s: 1.2.0-BETA1
    • Component/s: Searchable
    • Labels:
      None
    • Environment:
      Doctrine 1.1 revision 6546

      Description

      I'm using two databases with two connections, one of these only in one component of the project.

      I used Doctrine_Manager::bindComponent to set the connection for the tables of the second database, and left the main database's connection as default.

      The bug happens when I'm using search() in a searchable table of the second database. Doctrine_Search::search function uses the default connection when queries the index table, instead of the connection bound to the searchable table.

      I attached a patch, which works for me.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: