Hello I dunno why Im getting this ...
I have the following code .. I commented the lines to check btu still the same... sometimes this gives me a headache.. I checked in another projects i did, and I fowllow as I did ther and nothing..
public WOActionResults saveInfo() {
PROJECT theProject = new PROJECT();
session().defaultEditingContext().insertObject(theProject);
theProject.setDescription(description);
theProject.setDue_date(dueDate);
//theProject.setINVOICE(null);
theProject.setName(name);
theProject.setPid(id);
//theProject.setPROJECT_STATUSRelationship(status); //2nd attempt
//theProject.addObjectToBothSidesOfRelationshipWithKey(status, PROJECT.P_ROJEC_T_STATUS_KEY); // I try this first
//theProject.addObjectToBothSidesOfRelationshipWithKey(categ, PROJECT.P_ROJEC_T_CATEGORY_KEY); // I try this first
//theProject.setPROJECT_CATEGORYRelationship(categ); //2nd attempt
//theProject.setReceived_date(receivedDate);
//theProject.setSpecial_notes(specialNotes);
//theProject.setWORK_TYPE(workT);
// theProject.addObjectToBothSidesOfRelationshipWithKey(workT(), PROJECT.W_OR_K_TYPE_KEY);
//theProject.setWORK_TYPERelationship(workT); //2nd attempt
//theProject.addObjectsToBothSidesOfRelationshipWithKey(unitsList,PROJECT.U_NIT_S_OTHER_SS_KEY );
NSLog.out.appendln("HERE SO far so good");
((Session)session()).defaultEditingContext().saveChanges();
NSLog.out.appendln("the datawas sasved");
return null;
}
I attach a schema of my model... some things like names change but the relationships are the same...