code: function HasOne(model, related, foreignKey, localKey) {
          var _this = _super.call(this, model) /* istanbul ignore next */ || this;
          _this.related = _this.model.relation(related);
          _this.foreignKey = foreignKey;
          _this.localKey = localKey;
          return _this;
      }
docs: Create a new has one instance.