guardAgainstInvalidRelation (model) {
    if (!(model instanceof this.child)) {
      throw new TypeError(`[${model?.constructor?.name ?? 'Unknown'}] is not an instance of [${this.child.constructor.name}]`)
    }
  }
/**
   * Ensure only a valid model can be attached
   * @param model
   */
Ensure only a valid model can be attached
@param model
Ensure only a valid model can be attached @param model
guardAgainstInvalidRelation (model) {
    if (!(model instanceof this.child)) {
      throw new TypeError(`[${model?.constructor?.name ?? 'Unknown'}] is not an instance of [${this.child.constructor.name}]`)
    }
  }
guardAgainstInvalidRelation ( model ) { if ( ! ( model instanceof this . child ) ) { throw new TypeError ( ` ${ model ?. constructor ?. name ?? 'Unknown' } ${ this . child . constructor . name } ` ) } }
Ensure only a valid model can be attached
 @param model
Ensure only a valid model can be attached @param model