lib/aggregateModel.js
function (data) {
    if (data instanceof AggregateModel) {
      this.attributes = data.toJSON();
    } else {
      this.attributes = _.cloneDeep(data || {});
    }

    this.attributes.id = this.id;
    this.attributes._destroyed = this.attributes._destroyed || false;
    this.attributes._revision = this.attributes._revision || 0;
  }
function (data) {
    if (data instanceof AggregateModel) {
      this.attributes = data.toJSON();
    } else {
      this.attributes = _.cloneDeep(data || {});
    }

    this.attributes.id = this.id;
    this.attributes._destroyed = this.attributes._destroyed || false;
    this.attributes._revision = this.attributes._revision || 0;
  }
function ( data ) { if ( data instanceof AggregateModel ) { this . attributes = data . toJSON ( ) ; } else { this . attributes = _ . cloneDeep ( data || { } ) ; } this . attributes . id = this . id ; this . attributes . _destroyed = this . attributes . _destroyed || false ; this . attributes . _revision = this . attributes . _revision || 0 ; }
Resets the attributes for the aggregate.
Resets the attributes for the aggregate .