Skip to content

Commit

Permalink
Merge pull request #14 from finanzcheck/ANCH-1401-fix-propel-create-a…
Browse files Browse the repository at this point in the history
…nd-drop

ANCH-1401 remove connection name and use  ConnectionManagerInterface
  • Loading branch information
PouyaAmani authored Nov 29, 2023
2 parents ddc94d6 + d00e075 commit c034914
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Command/DatabaseCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$serviceContainer = Propel::getServiceContainer();
$serviceContainer->setAdapterClass($connectionName, $config['adapter']);
$serviceContainer->setConnectionManager($connectionName, $manager);
$serviceContainer->setConnectionManager($manager);

$connection = Propel::getConnection($connectionName);

Expand Down
2 changes: 1 addition & 1 deletion Command/DatabaseDropCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$serviceContainer = Propel::getServiceContainer();
$serviceContainer->setAdapterClass($connectionName, $config['adapter']);
$serviceContainer->setConnectionManager($connectionName, $manager);
$serviceContainer->setConnectionManager($manager);

$connection = Propel::getConnection($connectionName);

Expand Down

0 comments on commit c034914

Please sign in to comment.