OmgDef / yii2-multilingual-behavior

Yii2 port of the yii-multilingual-behavior.
146 stars 60 forks source link

It seems like creation test will fail in this way. #9

Closed padlyuck closed 9 years ago

padlyuck commented 9 years ago

Gii generates the following standart CRUD code, which doesn't save translation fields

public function actionCreate()
{
    $model = new Post();

    if ($model->load(Yii::$app->request->post()) && $model->save()) {
        return $this->redirect(['view', 'id' => $model->id]);
    } else {
        return $this->render('create', [
            'model' => $model,
        ]);
    }
}
padlyuck commented 9 years ago

It's strange, but in my case the translation fields are empty

OmgDef commented 9 years ago

@padlyuck As you see, all tests run successfully https://travis-ci.org/OmgDef/yii2-multilingual-behavior/builds/49941163