// (AR) could not find relationship from source object into "exists" clause, use primary key then instead
EOAttribute pk = srcEntity.primaryKeyAttributes().lastObject();
srcEntityForeignKey = expression.sqlStringForAttribute(pk);
}
EOJoin parentChildJoin = ERXArrayUtilities.firstObject(relationship.joins());
String destEntityForeignKey = "." + expression.sqlStringForSchemaObjectName(parentChildJoin.destinationAttribute().columnName());
EOQualifier qual = EOQualifierSQLGeneration.Support._schemaBasedQualifierWithRootEntity(subqualifier, destEntity);
EOFetchSpecification fetchSpecification = new EOFetchSpecification(destEntity.name(), qual, null, false, true, null);