Skip to content

App breaking on L 5.7.16 with hasManyThrough? #26768

Closed
@lpeterke

Description

@lpeterke

I was wondering if the fixes for hasManyThrough that have been introduced in 5.7.16 are a breaking change? In one of my apps I had this relation:

public function parentModels(){
  return $this->hasManyThrough(Model::class, SubModel::class, 'sub_model_id', 'model_id', 'id', 'id');
}

needed to change it like this to make my app work with 5.7.16:

public function parentModels(){
  return $this->hasManyThrough(Model::class, SubModel::class, 'sub_model_id', 'id', 'id', 'model_id');
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions