Doctrine 1
  1. Doctrine 1
  2. DC-605

importSchema uses the connection name to identify the schema name

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.2.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      mysql5 unix

      Description

      importSchema in Doctrine_Import(l:369) iterates over the connections to check if it matches the passed $databases, however, giving the connection a name anything different than the databasename causes the entire function to malfunction..

      So a workaround is to pass connection names as a second argument to `generateModelsFromDb` instead of the database names.

      Also, if you wouldnt give a name to a connection, as you would possible do with cache connections since the argument isnt mandatory, then the equation is skipped entirely causing it to run on the cache connection..

        Activity

        Hide
        Jonathan H. Wage added a comment -

        Hi, the variable in the code is just not named very well. It is supposed to be connection names and not database names. I will rename the variable in the code.

        Show
        Jonathan H. Wage added a comment - Hi, the variable in the code is just not named very well. It is supposed to be connection names and not database names. I will rename the variable in the code.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: