Update ModelCode.php

fix for multi many_many relations between two the same tables