Join tables is not generated twice if m:hasMany exists on both sides