title: CoreData: Filtering a FetchRequest results are nil
body: <p>I am trying to filter a fetch request to CD and initially it worked but now it is returning an empty array. I've checked the entity (Provider) and the key name I am trying to filter by is correct (providerName). I've checked the SQLite DB and the record with a name that matches the providerName I am searching for is there. (See attached images below). Could someone review my code and see if I am doing something wrong? Thanks:</p>
  
  <pre><code>- (NSArray* ) filterItemsFromCoreData : (NSArray* ) filters { 
  
  //create a managed object context
  NSManagedObjectContext* context = [self managedObjectContext];
  
  //create error container and fetch request
  NSError* errMsg;
  NSFetchRequest* fetchRequest = [[NSFetchRequest alloc] init];
  
  //get our filters from passed array
  NSString* filterProviderName = [filters objectAtIndex:0];
  NSString* filterProviderZip = [filters objectAtIndex:1];
  NSString* filterProviderPhone = [filters objectAtIndex:2];
  
  //create predicate
  NSPredicate *predicate = [NSPredicate predicateWithFormat:@"providerName == %@", filterProviderName];
  
  //create entity description
  NSEntityDescription *entity = [NSEntityDescription
                                 entityForName:@"Provider" inManagedObjectContext:context];
  
  //add entity and predicate to fetch request
  [fetchRequest setEntity:entity];
  [fetchRequest setPredicate:predicate];
  
  //get the objects
  NSArray *fetchedObjects = [context executeFetchRequest:fetchRequest error:&amp;errMsg];
  NSLog(@"%@", fetchedObjects);
  return fetchedObjects;
  }
  </code></pre>
  
  <p>Entity Screen Capture
  <img src="https://i.stack.imgur.com/IjDQn.png" alt="Entity Screen Cap"></p>
  
  <p>SQLite DB
  <img src="https://i.stack.imgur.com/Fnjks.png" alt="SQLite DB"></p>