-
Notifications
You must be signed in to change notification settings - Fork 394
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
Unable to generate ordered relationships with feature/swift12 branch #290
Comments
Anyone able to reproduce this? Am I holding it wrong? @justin @atomicbird |
@justin (tagging you since you expressed an interest on twitter) I dug into this a bit more this afternoon, setting some breakpoints in mogenerator's |
LLDB output from within mogenerator:
and the same relationship from the same model, from within the app:
|
Hi @tomburns, I am also able to reproduce this bug. I used git-bisect and found out that this is a regression introduced in f0b1b32. /cc @atomicbird |
Adds support for ordered relationships.
Excuse me @atomicbird, I read over your commit again and figured out you've completely reimplemented model parsing – great work! |
Adds support for ordered relationships.
Yep, looks like it was introduced when the internal parser fork was merged at 73fccca. @justin, @atomicbird, any thoughts on otaran's fix proposed above? I'm happy if it solves my immediate issue, but are there any tests which might indicate that other model features may not be picked up by the new parser? fwiw, the ./test/ suite comes back clean when run against
|
Adds support for ordered relationships.
This should be taken care of now. |
I'm having some difficulty getting mogenerator to generate correct machine classes for entities with ordered relationships. It's entirely possible that I'm missing something here, but every time I build
feature/swift12
from HEAD and generate classes I end up with plain sets as opposed to the ordered sets I would expect.I've created a sample project in which an ordered one-to-many relationship goes undetected: https://github.com/tomburns/CoreDataTest
It's entirely possible that I'm missing something; by all means let me know if this is a boneheaded mistake on my end!
for reference, the project was created with Xcode 6.3.2 and this is the mogenerator invocation i've been using:
~/bin/mogenerator --v2 --swift --model CoreDataTest/CoreDataTest.xcdatamodeld --output-dir CoreDataTest/
The text was updated successfully, but these errors were encountered: