Show
Ignore:
Timestamp:
01/08/2009 09:03:22 PM (3 years ago)
Author:
gbooker
Message:

Switched the the next version of the metadata.
Fixes #264

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/CoreData/SapphireFrappliance/MetaData/SapphireMObjects/SapphireSeason.m

    r622 r734  
    2323        ret.tvShow = tvshow; 
    2424        ret.seasonNumber = [NSNumber numberWithInt:season]; 
     25        return ret; 
     26} 
     27 
     28+ (SapphireSeason *)upgradeV1Season:(NSManagedObject *)oldSeason toShow:(SapphireTVShow *)show 
     29{ 
     30        NSManagedObjectContext *newMoc = [show managedObjectContext]; 
     31         
     32        SapphireSeason *ret = [NSEntityDescription insertNewObjectForEntityForName:SapphireSeasonName inManagedObjectContext:newMoc]; 
     33        ret.seasonDescription = [oldSeason valueForKey:@"seasonDescription"]; 
     34        ret.seasonNumber = [oldSeason valueForKey:@"seasonNumber"]; 
     35        ret.tvShow = show; 
    2536        return ret; 
    2637}