fixed wrong relation class name in gii model generator

fixes #1146
Merge branch 'master' of github.com:yiisoft/yii2

* 'master' of github.com:yiisoft/yii2:
  Fixes #1146: Gii generates wrong relation.