title: Sails.js One to many association
body: <p>Using the example given on the Sails.js documentation page, I get the following error : "Maximum call stack size exceeded error".</p>
  
  <pre><code>items.find().populate("user", {name:givenName}).exec(function(err, response) {
    console.log(response);
  }
  </code></pre>
  
  <p>The matter is that when I look with wireshark, the query on the database tries to find every user (and the database is big), but it doesn't make any join.</p>
  
  <pre><code>items
  +-----------+--------------+------+-----+
  | Field     | Type         | Null | Key |
  +-----------+--------------+------+-----+
  | id        | int(6)       | NO   | PRI | 
  | name      | varchar(255) | NO   |     |
  +-----------+--------------+------+-----+
  user
  +-----------+--------------+------+-----+
  | Field     | Type         | Null | Key |
  +-----------+--------------+------+-----+
  | id        | int(6)       | NO   | PRI | 
  | name      | varchar(255) | NO   |     |
  | item_id   | int(11)      | YES  | MUL | 
  +-----------+--------------+------+-----+
  </code></pre>