[NSEntityDescription insertNewObjectForEntityForName:@"FailedBankInfo" inManagedObjectContext:managedObjectContext]; failedBankInfo.name = @"Test Bank"; failedBankInfo.city = @"Testville"; failedBankInfo.state = @"Testland"; FailedBankDetails *failedBankDetails = [NSEntityDescription insertNewObjectForEntityForName:@"FailedBankDetails" inManagedObjectContext:managedObjectContext]; failedBankDetails.closeDate = [NSDate date]; failedBankDetails.updateDate = [NSDate date]; failedBankDetails.zip = [NSNumber numberWithInt:000]; failedBankDetails.info = failedBankInfo; failedBankInfo.details = failedBankDetails; NSError *error = nil; if (![managedObjectContext save:&error]) { NSLog(@"Error in 