# Sideload same model as requested

**URL:** <https://discuss.emberjs.com/t/sideload-same-model-as-requested/809>\
**Category:** Ember Data\
**Created:** [March 31, 2013, 5:33pm UTC](https://discuss.emberjs.com/t/sideload-same-model-as-requested/809 "2013-03-31T17:33:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![artursvonda](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/artursvonda/32/4046_2.png) [@artursvonda](https://discuss.emberjs.com/u/artursvonda)\
**Post date:** [March 31, 2013, 5:33pm UTC](https://discuss.emberjs.com/t/sideload-same-model-as-requested/809/1 "2013-03-31T17:33:20Z")

</div>

When loading single record (e.g., /users/1), it currently seems impossible to sideload other instances of the same model.

For example, if I have model User who has followers (hasMany with same model), ember data throws exception “Uncaught Error: assertion failed: Your server returned a hash with the key users but you have no mapping for it” when requesting user record (/users/1). Is this intended behaviour or a bug? And there a workaround available?

Thanks!

---

<div class="post-metadata">

**Author:** ![Brendan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/brendan/32/14555_2.png) [@Brendan](https://discuss.emberjs.com/u/Brendan)\
**Post date:** [April 3, 2013, 11:50am UTC](https://discuss.emberjs.com/t/sideload-same-model-as-requested/809/2 "2013-04-03T11:50:18Z")

</div>

Just a thought but couldnt you extend the model with a different name and sideload with that different name? This assumes you provide an array of User\_Ids in the returning JSON.

```
App.Follower = App.User.extend({
     follows: DS.hasMany("App.User")
});

```

I mean you need to provide the relationship anyway right. Or am I completely off on extending your own Ember models?
