-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating fetch from Xcode Model (Swift) #262
Comments
Hi, Same problem here. Is this issue has been corrected in a dev version ? Thx a lot for providing this great tool. Regards. |
Hi guys, no news about this issues ? Cause mogenerator is just unusable while we have to manually alter generated files containing fetch request method on each build... Thx for your help. Regards. |
Agree on that :-( On Mon, Apr 13, 2015 at 5:54 PM, modecolems notifications@github.com
Cumprimentos, |
This is going to be fixed soon. We are tracking the changes in #302. |
Hi,
I noticed that the mogenerator is generating incorrectly the fetch code giving a compile build error. It is related with optionals. The fetches were created on the Xcode model.
From the fetch func this is what the mogenerator, generates, giving compile error:
let fetchRequest = model.fetchRequestFromTemplateWithName("FetchName", substitutionVariables: substitutionVariables
...
let results = managedObjectContext.executeFetchRequest(fetchRequest, error: &error)
However it should be generating (notice the unwrapping of model and fetchRequest)
let fetchRequest = model?.fetchRequestFromTemplateWithName("FetchName", substitutionVariables: substitutionVariables
...
let results = managedObjectContext.executeFetchRequest(fetchRequest!, error: &error)
Thanks for your support and dev on this generator!
Best regards,
Joao Goncalves
The text was updated successfully, but these errors were encountered: