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

Closed
wants to merge 49 commits into from
Closed

Conversation

@bobdenotter
Copy link
Member

@bobdenotter bobdenotter commented May 7, 2019

Fixes #330. Fixes #329.

@bobdenotter
Copy link
Member Author

@bobdenotter bobdenotter commented May 7, 2019

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);
        }

Loading

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

@JarJak 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.

Loading

@bobdenotter bobdenotter force-pushed the editing-relations branch from 0ec8842 to bdd77fa May 22, 2019
@bobdenotter bobdenotter deleted the editing-relations branch Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants