fix bug of delete some class when there exist foreign keys in other table
Merge remote-tracking branch 'origin/master'