Skip to content

Conversation

@janis-ps
Copy link
Contributor

BelongsToMany wasn't saving - our field handle is gift_products and our relationship name is giftProducts. Xdebug shows $values has the linked IDs under $values['gift_products'] (so under the field handle) but none under $values['giftProducts']

Copy link
Member

@duncanmcclean duncanmcclean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@duncanmcclean duncanmcclean changed the title Fix BelongsToMany field not saving [8.x] Fix BelongsToMany field not saving Nov 24, 2025
@duncanmcclean duncanmcclean merged commit 5a2fcac into statamic-rad-pack:8.x Nov 24, 2025
17 of 18 checks passed
@github-actions
Copy link

Released as part of v8.8.2.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants