简体   繁体   English

Geddy是否支持has并属于许多协会?

[英]Does Geddy have support for has and belongs to many associations?

I'm developing a Geddy application where I need a "has and belongs to many" association. 我正在开发一个需要“拥有并属于许多人”关联的Geddy应用程序。 Is this possible? 这可能吗? It looks like only hasOne, hasMany, and belongsTo associations are supported in the docs. 看起来文档中仅支持hasOne,hasMany和belongsTo关联。

Have you tried stacking the associations? 您是否尝试过堆叠关联?

this.hasOne('thing')
this.hasMany('things')

You should be able to. 你应该能够。 Otherwise, submit an issue or hop on the #geddy freenode IRC channel and we'll help you out. 否则,请提交问题或在#geddy freenode IRC频道上跳转,我们将为您提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM