EOQualifier qualifier = relationship.qualifierWithSourceRow(database.snapshotForGlobalID(keyGID));
EOFetchSpecification relationshipFetchSpec = new EOFetchSpecification(entityName, qualifier, null);
EOAdaptorChannel channel = databaseContext.availableChannel().adaptorChannel();
channel.openChannel();
try {
channel.selectAttributes(relationship.destinationEntity().attributesToFetch(), relationshipFetchSpec, false, relationship.destinationEntity());
NSDictionary destinationSnapshot = null;
do {
destinationSnapshot = channel.fetchRow();
if (destinationSnapshot != null) {
EOGlobalID destinationGID = relationship.destinationEntity().globalIDForRow(destinationSnapshot);