Closed
Description
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');
}