-
Notifications
You must be signed in to change notification settings - Fork 19
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
Updating Without TagsText? #24
Comments
Each time you update an entity, you should pass back every value, even if unchanged. |
I see -- do you have any hints on the best way of doing this when you're updating an entity without using a form? I have things like commands and message handlers and whenever they touch my entity it loses its tags. At the moment I'm working around this by just calling |
Forms are unrelated. Once you get an entity, no matter how, and you need to re-save it (again, no matter how), each property of the entity needs to be non-empty (unless, of course, making a property empty is intentional). |
Thank you for clarifying! |
Am I right in thinking that if I have an entity that I've previously tagged, if I simply load the entity, change something unrelated to tags on it, and then persist it, that it will lose all the tags? (Because the
TagSubscriber
setTags
method relies on you having calledgetTagsText
/setTagsText
, and if you haven't, it will think you mean to remove all the tags?)Or am I possibly doing something dumb? :)
The text was updated successfully, but these errors were encountered: