Ok. I’ve checked that. Problem only occurs when PivotBy.php is not removed in the update process.
PivotBy.php