* @return true if it's still a fault.
*/
private boolean batchFetchToManyFault(EODatabaseContext dbc, Object obj) {
if (fetchingToMany.canEnter(dbc)) {
try {
EOAccessArrayFaultHandler handler = (EOAccessArrayFaultHandler) EOFaultHandler.handlerForFault(obj);
EOEditingContext ec = handler.editingContext();
EOEnterpriseObject source = ec.faultForGlobalID(handler.sourceGlobalID(), ec);
if (source instanceof AutoBatchFaultingEnterpriseObject) {
String key = handler.relationshipName();
EOEntityClassDescription cd = (EOEntityClassDescription) source.classDescription();
EORelationship relationship = cd.entity().relationshipNamed(key);
if (_handler.batchSizeForRelationship(ec, relationship) > 0) {
markStart("ToMany.Calculation", source, key);
NSArray<EOEnterpriseObject> candidates = null;