title: Sails js model association
body: <p>I currently have a News model and Comments model. Comments are showed up from X id news so for news with id 5 load comments with id 5.</p>
  
  <p>My models looks like this</p>
  
  <pre><code>module.exports = {
  
      tableName: 'raggaer_aac_news',
      autoCreatedAt: false,
      autoUpdatedAt: false,
      attributes: {
          id: {
              type: 'integer',
              primaryKey: true,
          },
          title: {
              type: 'string',
              defaultsTo: '',
              required: true
          },
          text: {
              type: 'string',
              defaultsTo: '',
              required: true
          },
          getComments: {
  
              required: false,
              model: 'Comments'
          }
      }
  };
  
  
  module.exports = {
  
      tableName: 'raggaer_aac_comments',
      attributes: {
  
          id: {
  
              required: true,
              type: 'integer',
              primaryKey: true
          },
          created_by: {
  
              type: 'string',
              required: 'true'
          },
          comment: {
  
              type: 'string',
              required: 'comment',
              unique: true,
              minLength: 10,
              maxLength: 100
          }
      }
  }
  </code></pre>
  
  <p>So on my controller what should I do? as you see I tried on News model adding getComments attribute but that just shows me an error everytime I load a item 'Cannot read property length of undefined'</p>
  
  <p>My controller looks like this</p>
  
  <pre><code>News.findById(req.param('id')).exec(function(err, data) {
  
          if(data.length === 0) {
  
              return res.redirect('/');
          }
  
          return res.view('home/news', {info: data[0]});
      }); 
  </code></pre>
  
  <p>How can I make it so that function will also read comments from comments_table?</p>