DBv1
植被与模式1有着多对一的关系。 i.e. Widget.model1, Model1.widgets。
DBv2
需搬迁植被,以便它们与模型2有着多对一的关系。 模型2与模式1(在非行两种版本中)有一对一的关系。 i.e. Widget.model2, Model2.widgets, Model2.model1s, Model1.model2
我试图将Widgets模式2与诸如:
FUNCTION($manager, "destinationInstancesForEntityMappingNamed:sourceInstances:" , "Model2ToModel2", $source.model1.model2)
The logic being that the original record $source has a model1 relationship, which in turn has a model2 relationship, so I m trying to grab the model2 via the original model1.
All the relationships end up as NULL. Any help would be much appreciated.
最新资料: 使关系(全心全意)更加明确:
DBv1
Model2 - has many Model1s
Model1 - has many Widgets
DBv2
Model2 - has many Model1s - has many Widgets
i.e. 我想将植被关系从模式1提高到模式2。