The inverse relationship for <…> does not reciprocate an inverse relationship

家住魔仙堡 提交于 2019-12-12 00:42:12

问题


I have the table A with the following relationships:

Relationship Destination Inverse
input        B           state
output       B           state

And the table B with the following relationship:

Relationship Destination Inverse
state        A           input

And I get the warning:

The inverse relationship for state.input does not reciprocate an inverse relationship

Is there a right way how can I fix the warning?


回答1:


You cannot have the same relationship name state for different relationships on the other side.

Either rename the state relationships to inputState and outputState.

Or add an additional entity that manages this relationship and keeps track of the relationship type with an input/output attribute.

Although I would not recommend the last solution (too complicated), you might need it if the state relationship of B should be input/output agnostic.

A (inOut) <----->> (as) State (b) <<--------> (state) B


来源:https://stackoverflow.com/questions/38258510/the-inverse-relationship-for-does-not-reciprocate-an-inverse-relationship

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!