title: Unimplemented SQL generation for predicate in iOS
body: <p>I am getting the following error in the core data </p>
  
  <pre><code> *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unimplemented SQL generation for predicate (mRemainderId LIKE &lt;MSaveRemainders: 0x1740cae90&gt;
  </code></pre>
  
  <p>And below is the code which i have used</p>
  
  <pre><code>  -(void) deleteRemainders:(NSMutableArray*) deleteArray{
      NSEntityDescription *entity = [NSEntityDescription entityForName:@"MSaveRemainders" inManagedObjectContext:self.managedObjectContext];
      NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
      for (NSString *remainderId in deleteArray) {
          NSPredicate *predicate = [NSPredicate predicateWithFormat:@"mRemainderId LIKE %@", remainderId];
          [fetchRequest setEntity:entity];
          [fetchRequest setPredicate:predicate];
          [fetchRequest setReturnsObjectsAsFaults:NO];
          NSError *error;
          NSArray *fetchedObjects = [self.managedObjectContext executeFetchRequest:fetchRequest error:&amp;error];
          for (NSManagedObject *managedObject in fetchedObjects) {
              [self.managedObjectContext deleteObject:managedObject];
          }
      }
  
  }
  </code></pre>
  
  <p>Delete array contains</p>
  
  <p> (entity: MSaveRemainders; id: 0xd000000000040002  ; data: {
      furtherSubCategoryId = nil;
      mDate = "2016-05-10";
      mNote = "this is financial";
      mNumberOfGlasses = 6;
      mRemainderId = 1462793810;
      mRepeat = None;
      mRepeatDays = "";
      mSleepTime = "10:00 PM";
      mSnooze = No;
      mTime = "(\n    \"05:06 pm\"\n)";
      mTitle = financial;
      mTone = "";
      mWakeUpTime = "06:00 AM";
      mWaterInLitres = "1.6";
      mYourWeight = 50;
      mainCategoryId = 1;
      subCategoryId = "(null)";
  })</p>