所以我有CustomEntity1并CustomEntity2用 mogenerator 生成。CustomEntity1与 有一对多关系,CustomEntity2与CustomEntity2有一个反向关系CustomEntity1。
我的问题是当我通过以下方式添加一些内容CustomEntity2时CustomEntity1:
[CustomEntity1 addCustomEntity2Object:entity2FreshlyCreated]
它是否设置了反向relashionship?还是我也必须这样做?
CustomEntity2.parent = CustomEntity1;