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

Root cannot be changed manually, change parent instead #2155

Closed
Nebojsaa opened this issue Jul 16, 2020 · 8 comments
Closed

Root cannot be changed manually, change parent instead #2155

Nebojsaa opened this issue Jul 16, 2020 · 8 comments
Labels
Bug A confirmed bug in Extensions that needs fixing. Needs Triage This issue needs further investigation to determine if it's a problem. Pending Author Stale Tree

Comments

@Nebojsaa
Copy link

Nebojsaa commented Jul 16, 2020

Version of doctrine/orm that I am using is: "2.7"
Scenario in place:

  1. I come to Menu and try to delete one item in the menu itself and this is the message that I got.
  2. Screenshot from 2020-07-16 15-59-15

Desired scenario:
I want to delete the item from the menu itself.
Obviously I have checked this link, but my project is depending heavily on newest Doctrine/orm - #1026

@AkenRoberts
Copy link
Member

Reopening this since the original was closed. Thank you for referencing it!

If anyone is experiencing this issue, please react or comment.

@AkenRoberts AkenRoberts reopened this Aug 15, 2020
@maciekpaprocki
Copy link

maciekpaprocki commented Oct 4, 2021

I started getting it too, weirdly on doctrine 2.10.0 and gedmo 3.1.0

@cfoehrdes
Copy link

cfoehrdes commented Oct 6, 2021

We are experiencing the same issue as soon as a second flush is called during execution of a single request. The gedmo tree listener on first flush handles the tree node insertions and modifies the nodes.
A second flush detects the modification of the nodes by the tree listener from first flush as a scheduled update and throws the "Root cannot be changed manually, change parent instead" exception.

We are running on doctrine/orm 2.10 and gedmo 3.1.0 (via stof/doctrine-extensions-bundle 1.6.0)

@cfoehrdes
Copy link

We are experiencing the same issue as soon as a second flush is called during execution of a single request. The gedmo tree listener on first flush handles the tree node insertions and modifies the nodes. A second flush detects the modification of the nodes by the tree listener from first flush as a scheduled update and throws the "Root cannot be changed manually, change parent instead" exception.

We are running on doctrine/orm 2.10 and gedmo 3.1.0 (via stof/doctrine-extensions-bundle 1.6.0)

We downgraded doctrine/orm to 2.9.* which allowed gedmo 3.2.0 and this combination is working perfectly fine

@lordrhodos
Copy link

lordrhodos commented Oct 8, 2021

We are running on doctrine/orm 2.10 and gedmo 3.1.0

We had a similar setup using dotrine/orm 2.10.1 with gedmo/doctrine-extensions v3.1.0. Downgrading to doctrine/orm 2.9.6 and upgrading to gedmo/doctrine-extensions v3.2.0works for us as well.

Related to #2261

@Kocal
Copy link

Kocal commented Oct 23, 2021

Hi!

I can confirm downgrading to doctrine/orm 2.9.6 fixes the issue.

@franmomu
Copy link
Collaborator

Hi, can you please try #2272 to see if it works with doctrine/orm > 2.10.2

@phansys phansys added the Bug A confirmed bug in Extensions that needs fixing. label Nov 6, 2021
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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. Needs Triage This issue needs further investigation to determine if it's a problem. Pending Author Stale Tree
Projects
None yet
Development

No branches or pull requests

8 participants