Gii crud generator enhancement #2018 fix

Sorry, I had to create separate branch, because my system got messed up and I was not using newest Yii code. #2018 fix