public function down()
 {
     $this->update('bid_category', ['name' => 'Stap 5 - Content', 'description' => 'Nu hebben we jou nodig, we kunnen dit natuurlijk niet zonder jou. Upload een bestand met daarin een sitemap (boomstructuur van de website) en de inhoud (teksten, foto\'s etc.) van de pagina\'s.'], ['ordering' => 5]);
     $id = BidCategory::find()->where(['ordering' => 5])->one()->id;
     $this->delete('bid_part', ['bid_category_id' => $id]);
     $this->insert('bid_part', ['name' => 'Content', 'bid_category_id' => $id, 'description' => 'Nu hebben we jou nodig, we kunnen dit natuurlijk niet zonder jou', 'price' => 0, 'file_upload' => 1, 'explanation' => 0, 'ordering' => 1, 'creator_id' => 1, 'datetime_added' => '2015-12-04 11:59:40', 'updater_id' => 1, 'datetime_updated' => '2015-12-04 11:59:40', 'deleted' => 0, 'attribute_name' => 'content']);
     $this->insert('bid_part', ['name' => 'Overslaan', 'bid_category_id' => BidCategory::find()->where(['ordering' => 1])->one()->id, 'description' => 'Ik weet wat ik wil sla deze stap over, gas erop!', 'price' => 0, 'file_upload' => 0, 'explanation' => 0, 'ordering' => 2, 'creator_id' => 1, 'datetime_added' => '2015-12-04 11:59:40', 'updater_id' => 1, 'datetime_updated' => '2015-12-04 11:59:40', 'deleted' => 0, 'attribute_name' => 'overslaan']);
 }
 public function actionStep5()
 {
     if (!Yii::$app->session->has('part4')) {
         return $this->redirect('/request-project/step-4');
     }
     $model = Yii::$app->session->get('part5', new PromotionForm());
     $category = BidCategory::find()->where(['ordering' => 5])->one();
     if ($model->load(Yii::$app->request->post())) {
         if ($model->validate()) {
             Yii::$app->session->set('part5', $model);
             return $this->redirect('/request-project/overview');
         }
     }
     return $this->render('step-5', ['model' => $model, 'category' => $category]);
 }
<div class="bid-part-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>
    
    <?php 
echo $form->field($model, 'attribute_name')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'bid_category_id')->dropdownList(ArrayHelper::map(BidCategory::find()->all(), 'id', 'name'));
?>

    <?php 
echo $form->field($model, 'description')->textarea(['rows' => 6]);
?>

    <?php 
echo $form->field($model, 'price')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'file_upload')->checkBox();
?>

    <?php 
 /**
  * Lists all BidCategory models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => BidCategory::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }