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

[WIP] Editing relations #418

wants to merge 49 commits into from


Copy link

@bobdenotter bobdenotter commented May 7, 2019

Fixes #330. Fixes #329.

Copy link
Member Author

When editing + saving a record, I get the following exception:

Screenshot 2019-05-07 at 21 27 39

If I comment out the two lines that modify the relations, it works as before (minus persisting the changed relations, obviously..

        // Remove old ones
        foreach ($currentRelations as $currentRelation) {
            // $this->em->remove($currentRelation);

        // Then (re-) add selected ones
        foreach ($relation as $id) {
            // $this->em->persist($relation);

@bobdenotter bobdenotter added this to the Bolt 4 beta 1 milestone May 8, 2019
Copy link

JarJak commented May 8, 2019

@bobdenotter I suppose this is a bug in Gedmo. For some reason Sortable conflicts with Translatable here, even if Relation is not a translatable entity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants