Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1.4
-
Fix Version/s: 1.2.0-BETA1
-
Component/s: Connection, Import/Export, Schema Files
-
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();