title: Sails.js Associations many-to-many relation
body: <p>I have a problem with many to many relationship in sails and if somebody can help me it would be great :D</p>
  
  <p>I have two models User and Message and the associations is defined as follows</p>
  
  <p>api/models/User.js</p>
  
  <pre><code>module.exports = {
    attributes: {         
      messages: {
        collection: 'message',
        via: 'owner',
        dominant: true
      }
    }
  };
  </code></pre>
  
  <p>api/models/Message.js</p>
  
  <pre><code>module.exports = {
    attributes: {
      owner: {
        model: 'user'.
        via: 'messages'
      }
    }
  };
  </code></pre>
  
  <p>I checked in the DB (MySQL) the middle table is created and i successfully inserted the data but i cant retrive the data. </p>
  
  <p>i start sails console and type</p>
  
  <pre><code>User
    .find()
    .populate('messages')
    .exec(function(err,r){
      while(r.length){
        var thisUser=r.pop();
        console.log(thisUser.toJSON())
      }
    });
  </code></pre>
  
  <p>But i always recive no data for messages, the messages field is always empty messages: []</p>
  
  <p>my Current version of sails is 0.10.0-rc4</p>