//
//  Queries.m
//  Flash
//
//  Created by Niko Matsakis on 26.07.07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import "Queries.h"
#import "OACoreData.h"

@implementation NSManagedObjectContext (FlashQueries)

- (NSArray*) inverseConnections
{ DEFINEARRAYQUERY(@"Connection", @"inverse = YES"); }

- (NSManagedObject*) findLearningForConnection:(NSManagedObject*)connection user:(NSManagedObject*)user
{ DEFINEOBJECTQUERY(@"Learning", @"user == %@ AND connection == %@", user, connection); }


@end
