Fixed #21343 -- Noted many-to-many restrictions with intermediate model.

Thanks EvilDMP for the report.