EOEditingContext editingContext = ERXEC.newEditingContext();
Company company = Company.createCompany(editingContext, "XYZ");
Employee p1 = (Employee) EOUtilities.createAndInsertInstance(editingContext, Employee.ENTITY_NAME);
company.addToEmployees(p1);
assertEquals(company, p1.company());
assertEquals(1, company.employees().count());
assertEquals(p1, company.employees().objectAtIndex(0));
}
public void testAutoSetThenSetToOneToNullImplicitToMany() {