fix for many-to-many recursive save
Merge pull request #551 from MaksSlesarenko/fix-for-many-to-many

fix for many-to-many recursive save