MongoDB Mongoid 中只设置 belongs_to 忽略 has_many 会有严重问题吗?

mingmingpao · April 09, 2015 · Last by dddd1919 replied at April 10, 2015 · 6946 hits

看文档中有这么一句

Definitions are required on both sides to the relation in order for it to work properly, unless one of the models is embedded.

如果我忽略 has_many 会怎样?因为不需要从 one 端获取 many 端

不会(没发现问题)

You need to Sign in before reply, if you don't have an account, please Sign up first.