# Setting async belongsTo relationship doesn't work

**URL:** https://discuss.emberjs.com/t/setting-async-belongsto-relationship-doesnt-work/4025
**Category:** Ember Data
**Created:** [January 30, 2014, 4:43pm UTC](https://discuss.emberjs.com/t/setting-async-belongsto-relationship-doesnt-work/4025 "2014-01-30T16:43:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kruczekdawid](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/kruczekdawid/32/15467_2.png) [@kruczekdawid](https://discuss.emberjs.com/u/kruczekdawid)
#### Post date: [January 30, 2014, 4:43pm UTC](https://discuss.emberjs.com/t/setting-async-belongsto-relationship-doesnt-work/4025/1 "2014-01-30T16:43:38Z")

</div>

I have a problem setting belongsTo relationship on newly created record. Simply I have to objects:

Checklist with:

```
user: DS.belongsTo('user', {
    async: true,
    inverse: 'checklists'
})

```

User with:

```
checklists: DS.hasMany('checklist', {
    async: true,
    inverse: 'user'
})

```

I’m trying to create new checklist object:

```
var checklist = this.store.createRecord('checklist', {
    name: this.get('checklistName'),
    user: this.get('currentUser')
});

checklist.save();

```

Name is set up correctly from controller. currentUser keeps valid user object of course, however it’s not set. When the request hits API it lacks user parameter:

```
{
    checklist: {
        name: 'Name'
    }
}

```

When I remove “async” parameter from checklist model it apparently works. What may cause that?

---

<div class="post-metadata">

### Author: ![bjs](https://avatars.discourse-cdn.com/v4/letter/b/b38774/32.png) [@bjs](https://discuss.emberjs.com/u/bjs)
#### Post date: [February 4, 2014, 4:31pm UTC](https://discuss.emberjs.com/t/setting-async-belongsto-relationship-doesnt-work/4025/2 "2014-02-04T16:31:07Z")

</div>

I ran into this issue a couple of months ago. There is something that just drops changes when it’s async. I tried several methods at the time, even some private methods (and setting \_data directly). I just ended up setting it to not be async.

It’s worth noting that the [Ember Data 1.0-beta3 ChangeLog](https://github.com/emberjs/data/blob/master/CHANGELOG.md#ember-data-100-beta3-september-28-2013) says that they fixed “async belongsTo” back in September. Check that you’re using a recent version. If it’s still failing, boil it down to a simple test case on (e.g.) JSBin and file a bug report on Github.
