Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8701377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:23:06+00:00 2026-06-13T02:23:06+00:00

I am have difficulty setting a belongsTo relationship using ember data. I have a

  • 0

I am have difficulty setting a belongsTo relationship using ember data. I have a jsfiddle example to demonstrate. My original problem was that I was getting the following error:

Uncaught Error: <DS.StateManager:ember5035> could not respond to event loadedData in state rootState.loaded.updated.inFlight.

This only occurred when I updated the belongsTo relation on the model using the select. That was using Ember Data’s built in RestAdapter. In the current example I am using the FixtureAdapter and I can’t seem to persist any changes (if you check out the fiddle and edit the name of one the books, you will see that it reverts back to the original name)? They seem to revert as soon as the “server response” is simulated by the adapter? Is there a way to simulate a proper server response?

Also, I am wondering if my woes here are the result of how I’ve set up the data store transaction. I am using the following approach in the controller:

App.EditBookController = Ember.ObjectController.extend({
  enterEditing: function() {
    this.transaction = App.router.get('store').transaction();
    this.transaction.add(this.get('content'));
  },
  updateRecord: function() {
    this.transaction.commit();
    this.transaction = null;
    App.router.transitionTo('books');
  }
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T02:23:07+00:00Added an answer on June 13, 2026 at 2:23 am

    Ok, you are using the very edge version of ember-data. This is great, but I have to put myself update too. With the help of @tchak, I can begin to make it working:

    http://jsfiddle.net/Sly7/2XHZ2/45/

    You will note I’m using App.Book.find() in order to load the fixtures for the first time, and App.Book.all() which seems to be a live Array, so things are kept updated.

    I have to going further in order to make the select working.

    Ok, my last try for the moment… http://jsfiddle.net/Sly7/2XHZ2/57/

    LAST EDIT Got it working by adding the RESTSerializer to the FixtureAdapter. see http://jsfiddle.net/Sly7/2XHZ2/61/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some jQuery code that is having difficulty running because I'm using it
I have encounters this abap snippet that I have difficulty to comprehend. call function
I am told that the configuration below is possible, but have had significant difficulty
I'm having difficulty setting up a simple menu that displays results on a div
I'm having difficulty getting Git to cooperate with my user-defined worktree that exists outside
I'm developing a web application using MVC3 in VB.NET. I having difficulty setting a
I am creating a Windows service using Apache's procrun, and I'm having difficulty getting
I'm working on setting up a page and am having difficulty with getting it
I'm not a C++ programmer and have difficulty understanding the explanations given on websites.
i have a little difficulty in understanding how to do some INSERT SELECT. For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.