Code Monkey home page Code Monkey logo

Comments (6)

Kilowhisky avatar Kilowhisky commented on June 28, 2024

I think i found the problem.

DS.hasMany('model') relationships are failing because of this line change in the last commit.

-        var foreignAdapter = type.store.adapterFor(relationModel);
+        var foreignAdapter = store.adapterFor(relationName);

The new line throws this error "No model was found for 'modelPropName'" because its attempting to pass in the relationship property name and not the model type the prop represents.

type.store.adapterFor(relationModel); does not throw any deprecations so why was it switched out?

FYI store.adapterFor(relationModel) also works without exploding.

from ember-localstorage-adapter.

srsgores avatar srsgores commented on June 28, 2024

I may be experiencing a related bug. After upgrading to 0.5.4, I get an error when retrieving a record with store.find(modelName, id), resulting in the following error:

Error while processing route: No model was found for coApplicants

Where coApplicants is a hasMany relationship on a given model (not async)

from ember-localstorage-adapter.

kurko avatar kurko commented on June 28, 2024

What versions of Ember Data are you using?

from ember-localstorage-adapter.

srsgores avatar srsgores commented on June 28, 2024

1.18 beta

from ember-localstorage-adapter.

duizendnegen avatar duizendnegen commented on June 28, 2024

This is affecting my solution as well - I thought it had to do with pluralization, but no

from ember-localstorage-adapter.

locks avatar locks commented on June 28, 2024

#124 says it fixes this, please reopen if that's not the case.

from ember-localstorage-adapter.

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.