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

Closure metadata doesn't work with doctrine/persistence 2.2 #2240

Closed
hlecorche opened this issue Jul 11, 2021 · 1 comment
Closed

Closure metadata doesn't work with doctrine/persistence 2.2 #2240

hlecorche opened this issue Jul 11, 2021 · 1 comment
Labels
Bug A confirmed bug in Extensions that needs fixing. Tree

Comments

@hlecorche
Copy link
Contributor

hlecorche commented Jul 11, 2021

Since doctrine/persistence 2.2.0, the Gedmo\Tree\Strategy\ORM\Closure::processMetadataLoad method does not work anymore :

  • associations are not created
  • indexes are not created

Tested with Symfony and doctrine-extensions 3.1.0 :

  • Works in a dev environment. But not in a production environment
  • Works only with doctrine/persistence < 2.2.0

doctrine-extensions issue or Symfony issue ?

I think there is a link with #2236

@phansys phansys added the Bug A confirmed bug in Extensions that needs fixing. label Nov 6, 2021
@phansys phansys added the Tree label Nov 16, 2021
@franmomu
Copy link
Collaborator

Thanks for reporting! Sorry, it has been a while since it was reported.

Since there are some problems with this, we decided that it's better if the user adds the ancestor and descendant mappings manually: https://github.com/doctrine-extensions/DoctrineExtensions/blob/13dd920b1c6a5f29f92aef383f68e40913431c6a/doc/tree.md#closure-table

I'm closing this issue, but feel free to re-open if that doesn't fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A confirmed bug in Extensions that needs fixing. Tree
Projects
None yet
Development

No branches or pull requests

3 participants