Klass.setters[association.identifier] = function setRelationIdentifier(val) {
    this.entity[association.as] = val.id || val;

    return this;
  };