title: sailsJS .exec() within forloop doesn't work
body: <p>i have a model something like this:</p>
  
  <pre><code>\**
  * user.petIds = ["1","2","3","4"];
  *\
  getPets: function(users){
      var response = [];
      users.forEach(function(user){
        Pet.find(users[i].petIds).exec(function(err, pets){
          if(err) return null;
          console.log("index: "+i);
          response.push({ name: users[i].name, pets: pets});
        });
      });
      return response;
    }
  </code></pre>
  
  <p>I want to get every pets from an array of pet ids for an array of users. However, an exec only executes after a callback which in this case causes a return prematurely. Is there anything in Sails which solve this problem? Otherwise it's impossible to use a for loop to query. I'm still very new to the way how JS works. Any help is appreciated. Thanks (:</p>