Skip to content

Commit

Permalink
Add support for newer doctrine dbal/orm
Browse files Browse the repository at this point in the history
connect() is gone, use getNativeConnection() which is a superset
  • Loading branch information
lazka committed Sep 24, 2024
1 parent 29e77e7 commit c5e6479
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 28 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"dbp/relay-blob-library": "^0.2.10",
"dbp/relay-core-bundle": "^0.1.153",
"doctrine/collections": "^1.8 || ^2",
"doctrine/dbal": "^3.8",
"doctrine/dbal": "^3.8 || ^4.0",
"doctrine/doctrine-migrations-bundle": "^3.3",
"doctrine/migrations": "^3.5",
"doctrine/orm": "^2.18",
"doctrine/orm": "^2.18 || ^3.2",
"psr/cache": "^3.0",
"psr/log": "^1.1.4 || ^2.0 || ^3.0",
"symfony/config": "^6.4",
Expand Down
78 changes: 53 additions & 25 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Service/CabinetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private function getCurrentPerson(): Person

public function checkConnection()
{
$this->em->getConnection()->connect();
$this->em->getConnection()->getNativeConnection();
}

protected function log($level, string $message, array $context = [])
Expand Down

0 comments on commit c5e6479

Please sign in to comment.