title: EmberJS Cannot set property 'store' of undefined (DS.hasMany)
body: <p>Firstly I have read the related issues on SO and none seem to help me.</p>
  
  <p>I have 2 models, <strong>Foo</strong> and <strong>Bar</strong>. <strong>Foo</strong> has a property, <strong>bars</strong>, which <strong>hasMany</strong> <strong>Bar</strong>.</p>
  
  <p>// FOO</p>
  
  <pre><code>export default DS.Model.extend({
    name: attr('string'),
    bars: hasMany('bar')
  });
  </code></pre>
  
  <p>// BAR</p>
  
  <pre><code>export default DS.Model.extend({
    name: attr('string')
    foo: belongsTo('foo')
  });
  </code></pre>
  
  <p>And the JSON payload:</p>
  
  <pre><code>{
    "name": "Something",
    "bars": [
      {
         "name": "something else"
      },
      {
         "name": "another one"
      }
    ]
  }
  </code></pre>
  
  <p>I've been trying to figure this error out for a while but I am stuck.</p>
  
  <p>Here is the <a href="http://emberjs.jsbin.com/pohafata/3/edit?html,js,console" rel="nofollow">jsbin</a>.
  If you look in the browsers console (not the jsbin one) you can see the error.</p>