Comments (4)
I guess my fetch requests don't usually involve relationships, so I'm not running into this issue. Can you give me an example of the generated code and what code you'd like to see generated?
from mogenerator.
I have a thing A that has things B that has things C. Given thing A, I want all those things C, but not necessarily things B.
Fetch all C's where C.B==A.B.
The fetch request is generated fine, but it uses the class for A in the method signature, which isn't recognized by the compiler.
from mogenerator.
Thanks. If you want this fixed, could you fork mogeneratorTestMule and add the test entities (you can name them EntityA, EntityB, etc) and the fetch request that results in the failing codegen?
There's the hard (correct) way to fix this: do the lookups and put stash the results in an NSSet that can be accessed by the templates. But there's also an easy (hacky) way work-around: we could add an "extraMachineClassDeclararions" Entity.userInfo and you could specify it manually.
from mogenerator.
Dup'd as #123
from mogenerator.
Related Issues (20)
- Add nullability annotation for primitive setters HOT 2
- scalar methods do not respect the signed types that Core Data forces
- Swift generated code creates NSNumber for boolean types HOT 1
- Generated code crashes with Xcode 8.3 HOT 3
- Issue with setPrimitive...: for Transformable attributes HOT 1
- Inherited entities and compundIndex
- RFC: Swift Codable Attribute Support HOT 6
- Changes on swift42 break `attributeValueScalarType` for enumerations HOT 4
- Implement Codable support for NSManagedObject subclasses HOT 13
- Use scalar properties for primitive data types HOT 3
- generate NSFetchRequest without executing it HOT 3
- There is mo mogenerator's folder in /Library/Application Support after successful installation. HOT 2
- Trying to find swift template files outside of template-group HOT 8
- Attribute's userInfo dictionary HOT 1
- Feature Request: MacPorts support HOT 1
- Swift module name breaks things HOT 1
- Wiki for Template Variables - abstract should read isAbstract
- Is this project maintained? HOT 1
- Transformable property for [NSString] get error.
- mogenerator --configuration does nothing now HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mogenerator.