title: My entity name is true but I get this issue "keypath id not found in entity Alisveris"
body: <p>I'm working with coreData and this is my first experience. My entity name is &quot;Alisveris&quot;. When I write this code as below, I get this error.</p>
  <blockquote>
  <p>Thread 1: &quot;keypath id not found in entity Alisveris&quot;</p>
  </blockquote>
  <p>but why?</p>
  <pre><code>if secilenUrunIsmi != &quot;&quot; {
          
      if let uuidString = secilenUrunUUID?.uuidString {
          
          let appDelegate = UIApplication.shared.delegate as! AppDelegate
          let context = appDelegate.persistentContainer.viewContext
          
          let fetchRequest = NSFetchRequest&lt;NSFetchRequestResult&gt;(entityName: &quot;Alisveris&quot;)
          fetchRequest.predicate = NSPredicate(format: &quot;id = %@&quot;, uuidString)
          fetchRequest.returnsObjectsAsFaults = false
          
              do {
                  let sonuclar = try context.fetch(fetchRequest)
                  
                  if sonuclar.count &gt; 0 {
                      
                      for sonuc in sonuclar as! [NSManagedObject] {
                          
                          if let urunadi = sonuc.value(forKey: &quot;urunadi&quot;) as? String {
                              urunAdiLabel.text = urunadi
                          }
                          
                          if let urunfiyati = sonuc.value(forKey: &quot;urunfiyati&quot;) as? Int {
                              urunFiyatiLabel.text = String(urunfiyati)
                          }
                          
                          if let urunbedeni = sonuc.value(forKey: &quot;urunbedeni&quot;) as? String {
                              urunBedeniLabel.text = urunbedeni
                          }
                          
                          if let urunresmi = sonuc.value(forKey: &quot;urunresmi&quot;) as? Data {
                              let image = UIImage(data: urunresmi)
                              imageLabel.image = image
                          }
                      
                      }
  
                  }
              } catch {
                  print(&quot;hata&quot;)
              }
                    
      } else {
          urunAdiLabel.text = &quot;&quot;
          urunFiyatiLabel.text = &quot;&quot;
          urunBedeniLabel.text = &quot;&quot;
      }
  }
  </code></pre>