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

habtm fails for two level SEL

If you have two classes Apple and Oranges that are in HABTM, doing the following fails.

Apple.each do |a| a.oranges.each do |o| p "Apple #{a.id} owns Orange #{o.id}" end end

The oranges that each apple owns is not displayed correctly.

Created by Phil Wang - 2009-07-22 03:33:11 UTC

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

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

  • 写回答

9条回答 默认 最新

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

    yea, i just quickly retested this on Sinatra. definitely a bug.

    by Phil Wang

    评论

报告相同问题?