Skip to content
Discussion options

You must be logged in to vote

The reason for this is https://github.com/Laravel-Backpack/CRUD/blob/f180f5e4bb900640f5c07abf5e1c1fbb70ccf6d7/src/app/Library/CrudPanel/Traits/Create.php#L145 which does a sync. When the last "fake" field that uses the relationship is stored, it overwrites previously stored relationships.

I do not think this is a bug, although users might expect a different behaviour.

  • A "workaround" solution inside Backpack would be non-trivial, as it would need to pre-determine if such relationship-sharing fields exist. If we iterate over all relationship fields and "merge" them into relationship fields with the datas also merged, this would work.
    But there are a lot of possible structures for the rela…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@o15a3d4l11s2
Comment options

Answer selected by jcastroa87
Comment options

You must be logged in to vote
1 reply
@o15a3d4l11s2
Comment options

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