Skip to content

Commit

Permalink
Support doctrine/orm 2.14+
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Jan 24, 2023
1 parent 0bad66a commit 1609a8c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
29 changes: 15 additions & 14 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 concrete/composer.json
Expand Up @@ -50,7 +50,7 @@
"scssphp/scssphp": "^1.4",
"doctrine/annotations": "^1.13.2",
"doctrine/dbal": "^2.13.2",
"doctrine/orm": "^2.13 <2.14",
"doctrine/orm": "^2.13",
"doctrine/lexer": "^1.2.3",
"doctrine/common": "^3.1.2",
"doctrine/persistence": "^2.5.1",
Expand Down
3 changes: 0 additions & 3 deletions concrete/src/Database/EntityManagerConfigFactory.php
Expand Up @@ -84,9 +84,6 @@ public function getConfiguration()
*/
public function getMetadataDriverImpl()
{
// Register the doctrine Annotations
\Doctrine\Common\Annotations\AnnotationRegistry::registerFile('doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php');

$legacyNamespace = $this->getConfigRepository()->get('app.enable_legacy_src_namespace');
if ($legacyNamespace) {
\Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace('Application\Src',
Expand Down

0 comments on commit 1609a8c

Please sign in to comment.