Gii fix for multi many_many relations between two the same tables

fix for multi many_many relations between two the same tables