Comments (6)
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.
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.
What versions of Ember Data are you using?
from ember-localstorage-adapter.
1.18 beta
from ember-localstorage-adapter.
This is affecting my solution as well - I thought it had to do with pluralization, but no
from ember-localstorage-adapter.
#124 says it fixes this, please reopen if that's not the case.
from ember-localstorage-adapter.
Related Issues (20)
- Checkout project and run tests: 47 tests. 2 passed, 45 failed HOT 4
- findAll returns empty array always HOT 2
- Uncaught TypeError: Cannot read property 'typeKey' of undefined HOT 4
- support for > Ember Data 1.0.beta.16 HOT 6
- unloadAll() doesnt work HOT 2
- New Release HOT 3
- Are query() queryRecord() supported? HOT 1
- use begin/endPropertyChanges in findMany
- relationships in "new" state should not be pushed to LS
- Ember data 2.3+ does not work with this addon HOT 21
- sessionStorage support HOT 3
- FastBoot-ness
- Relationships to a model using another adapter HOT 1
- Resolve no results instead of rejecting the promise HOT 2
- After a failed .findRecord, it is impossible to create a record with the same id HOT 2
- Unable to fetch with .findAll('user') HOT 1
- Upgrade ember-cli-babel & ember-runtime-enumerable-includes-polyfill to remove deprecation warning HOT 6
- Fix use of deprecated .copy method
- Push new version
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 ember-localstorage-adapter.