title: Promise is pending
body: <p>I have a class in my nodejs application with the following code:</p>
  
  <pre><code>var mongoose    = require('mongoose');
  var Roles       = mongoose.model('roles');
  var Promise     = require("bluebird");
  
  module.exports = Role;
  
  var err = null;
  var id;
  
  function Role(name, companyId) {
      this.err = err;
      this.name = name;
      this.companyId = companyId;
      this.id = getId(name, companyId);
  }
  
  
  
  var getId = function (name, companyId) {
       return new Promise(function(resolve, reject) {
          Roles.findOne({companyId:companyId, name:name}, function(err,result) {
                resolve(result._id);
          });
       });
  };
  </code></pre>
  
  <p>When I am calling the class, the id is pending:</p>
  
  <pre><code>var currentRole = new Role(myRole, comId);
  console.log(currentRole);
  </code></pre>
  
  <p>How can I get the values from the class when they are resolved?</p>