I added a fetched property to my entity at data model. I did not add its predicate. I retrieve it with fetchRequestTemplateForName, but when execute it I got this error "executeFetchRequest:error: A fetch request must have an entity."

But how come I get this error. Isn't that fetched property a property of my entity ? 

So I further debug the issue and find that it was because the retrieved NSFetchRequest == nil

[[self managedObjectModel] fetchRequestTemplateForName:@"somename"];

So how do I fix it ?

Thanks!

Qiu