weixin_39782500 2020-11-22 01:58
浏览 0

Json type / Hash assignment fails to mark attribute as dirty.

After changing the Hash, Resource#save returns true without a DB update.

See attached test.

Created by ojak - 2009-10-19 10:31:53 UTC

Original Lighthouse ticket: http://datamapper.lighthouseapp.com/projects/20609/tickets/1098

该提问来源于开源项目:datamapper/dm-core

  • 写回答

5条回答 默认 最新

  • weixin_39782500 2020-11-22 01:58
    关注

    Have you ever considered this case? It’s something I also have faced when I added support for Hash and Array as the property type. It’s an interesting challenge to have it working correctly. Any ideas how we could approach that?

    by Piotr Solnica (solnic)

    评论

报告相同问题?