Giter VIP home page Giter VIP logo

Comments (4)

rentzsch avatar rentzsch commented on August 19, 2024

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.

bgulanowski avatar bgulanowski commented on August 19, 2024

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.

rentzsch avatar rentzsch commented on August 19, 2024

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.

rentzsch avatar rentzsch commented on August 19, 2024

Dup'd as #123

from mogenerator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.