var Collection = require('./collection');

function HasMany(options) {
  return {
    staticValue: new Collection(),
    //hasMutableValue: false // unjoinable, unsettable
  };
}

module.exports = HasMany;

var Collection = require('./collection');

function HasMany(options) {
  return function(orm, model, attributeName) {
    var collection = new Collection(model, attributeName);
    return {
      staticValue: collection,
      virtual: true,
      get: collection.get
    };
  }
}

module.exports = HasMany;

Use new attribute API with HasMany
Use new attribute API with HasMany
