Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DoctrineBundle 2.7.0 calls undefined method setSchemaIgnoreClasses #1536

Closed
Xesau opened this issue Jun 15, 2022 · 2 comments · Fixed by #1538
Closed

DoctrineBundle 2.7.0 calls undefined method setSchemaIgnoreClasses #1536

Xesau opened this issue Jun 15, 2022 · 2 comments · Fixed by #1538

Comments

@Xesau
Copy link

Xesau commented Jun 15, 2022

In orm 2.11 the method setSchemaIgnoreClasses was introduced. DoctrineBundle's composer.json has a conflict doctrine/orm <2.10 but that should be <2.11, or the version should be checked before setSchemaIgnoreClasses is called.

16:05:38 CRITICAL  [php] Uncaught Error: Call to undefined method Doctrine\ORM\Configuration::setSchemaIgnoreClasses() ["exception" => Error { …}]

In App_KernelDevDebugContainer.php line 1283:

  Attempted to call an undefined method named "setSchemaIgnoreClasses" of class "Doctrine\ORM\Configuration".
@Mon-Tea
Copy link

Mon-Tea commented Jun 16, 2022

I had a similar error yesterday while updating symfony 4.3 to 4.4 …

I know it's not a final solution, but if you downgrade to doctrine/doctrine-bundle to 2.6.4 the error disappears. (Just a workaround)
But perhaps a diff can find the real solution ;)

@dmaicher
Copy link
Contributor

dmaicher commented Jun 16, 2022

Indeed it should be a conflict for <2.11. @Xesau do you want to provide a PR to fix this? 😊

@Mon-Tea a better solution/workaround is probably updating to doctrine/orm 2.11+

@ostrolucky ostrolucky changed the title DoctrineBundle 2.7.0 conflicts with doctrine/orm 2.10 DoctrineBundle 2.7.0 calls undefined method setSchemaIgnoreClasses Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants