Using a similar loginc for calculating the name of the pivot table as
the one used in 2.x, this will make an easier transition for some users
Fixing the usage of a property name for the pivot table records when
setting up a belongsToMany