This topic created in 4201 days ago, the information mentioned may be changed or developed.
模型A 可能对应到模型B, 也可能对应不到模型B。这两个之间应该如何写关联?
4 replies • 2015-02-05 16:17:24 +08:00
 |
|
1
wesley Feb 5, 2015
A hasOne B: => A.b_id = B.idA belongsTo B: => A.id = B.a_id
|