# Multiple hasMany relationships not loading when doing a find

**URL:** <https://discuss.emberjs.com/t/multiple-hasmany-relationships-not-loading-when-doing-a-find/4457>\
**Category:** Ember Data\
**Created:** [March 11, 2014, 3:34pm UTC](https://discuss.emberjs.com/t/multiple-hasmany-relationships-not-loading-when-doing-a-find/4457 "2014-03-11T15:34:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishagel](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/krishagel/32/15568_2.png) [@krishagel](https://discuss.emberjs.com/u/krishagel)\
**Post date:** [March 11, 2014, 3:34pm UTC](https://discuss.emberjs.com/t/multiple-hasmany-relationships-not-loading-when-doing-a-find/4457/1 "2014-03-11T15:34:10Z")

</div>

I have an “organization” model with multiple hasMany relationships:

```
  users: DS.hasMany('user',{async:true}),
  templates: DS.hasMany('template',{async:true}),

```

When I use this model in a handlebars template to display the model, it pulls in both the relationships. But when I try to create a new user and load in the organization via:

```
this.store.find('organization');

```

it is not pulling in the relationships for templates, and vice-versa, when I create a new template and load in the organization, it doesn’t load in the users relationship. What could I be missing, or what do I need to do differently?

---

<div class="post-metadata">

**Author:** ![flashesofpanic](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/flashesofpanic/32/14191_2.png) [@flashesofpanic](https://discuss.emberjs.com/u/flashesofpanic)\
**Post date:** [March 11, 2014, 7:32pm UTC](https://discuss.emberjs.com/t/multiple-hasmany-relationships-not-loading-when-doing-a-find/4457/2 "2014-03-11T19:32:40Z")

</div>

If the relationships are async, they aren’t going to be loaded unless they’re called. So if you create a new user `currentUser` and set its organization like this:

```
currentUser.set("organization", this.store.find('organization', 1))

```

you’ll make a request to your API for that organization instance, but you won’t get its templates unless you also do something like this:

```
currentUser.get("organization.templates")

```

(I’m leaving out the promise-resolving part here, for simplicity’s sake.)

---

<div class="post-metadata">

**Author:** ![krishagel](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/krishagel/32/15568_2.png) [@krishagel](https://discuss.emberjs.com/u/krishagel)\
**Post date:** [March 11, 2014, 8:35pm UTC](https://discuss.emberjs.com/t/multiple-hasmany-relationships-not-loading-when-doing-a-find/4457/3 "2014-03-11T20:35:28Z")

</div>

Thank you so much, that solved it.
