fix calling init method in yii adapter