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

How to update an association when empty? #140

Closed
bhtabor opened this issue Apr 1, 2020 · 0 comments · Fixed by #144
Closed

How to update an association when empty? #140

bhtabor opened this issue Apr 1, 2020 · 0 comments · Fixed by #144

Comments

@bhtabor
Copy link
Contributor

bhtabor commented Apr 1, 2020

The README has a section on fetching associations (https://github.com/contentful/contentful_model#associations) and updating content (https://github.com/contentful/contentful_model#updating-content). But, it is not clear how we update associations when references are empty. Can it be done with contentful_model or should we use contentful_management?

Apparently, reference field setters are not available when associations are empty. Somehow related to contentful/contentful.rb#190

@bhtabor bhtabor changed the title How to update an association? How to update an association when empty? Apr 3, 2020
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 a pull request may close this issue.

1 participant