Uploaded image for project: 'Doctrine 1'
  1. Doctrine 1
  2. DC-87

Import / export does not take into account the connection to the database

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.4
    • Fix Version/s: 1.2.0-BETA1
    • Labels:
      None
    • Environment:
      Environment does not matter, the problem occurs in the Doctrine code. he problem occurs in any environment.

      Description

      The mechanism of imports and exports does not include connection to the database. This creates many problems when we have multiple connections to the database and want to use a command to generate. (generateYamlFromDb or generateYamlFromModels or generateModelsFromDb or generateModelsFromYaml and other related methods)

      Possible solution:

      The file Doctrine/Import.php between lines 384 and 385 insert:
      $definition['connection'] = $connection->getName();
      $definition['connectionClassName'] = $definition['className'];

      The file Doctrine/Export/Schema.php between lines 71 and 72 insert line:
      $table['connection'] = $recordTable->getConnection()->getName();

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jwage Jonathan H. Wage
            Reporter:
            krzysztofu Krzysztof Ustowski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: