/**
  * @return \yii\db\ActiveQuery
  */
 public function getEinheitstyp()
 {
     return $this->hasOne(Einheitstyp::className(), ['id' => 'einheitstyp_id']);
 }
Example #2
0
        </tr>
    <?php 
foreach ($model->teileigentumseinheits as $key => $modelTeilieigentum) {
    ?>
        <tr>
            <td>
                <span class="hide">
                    <?php 
    echo $form->field($modelTeilieigentum, 'id')->hiddenInput(['name' => "Teileigentumseinheiten[{$key}][id]"]);
    ?>
                    <?php 
    echo $form->field($modelTeilieigentum, 'haus_id')->hiddenInput(['name' => "Teileigentumseinheiten[{$key}][haus_id]"]);
    ?>
                </span>
                <?php 
    echo $form->field($modelTeilieigentum, 'einheitstyp_id')->dropDownList(ArrayHelper::map(Einheitstyp::find()->all(), 'id', 'name'), ['name' => "Teileigentumseinheiten[{$key}][einheitstyp_id]"]);
    ?>
            </td>
            <td><?php 
    echo $form->field($modelTeilieigentum, 'te_nummer')->textInput(["maxlength" => true, 'name' => "Teileigentumseinheiten[{$key}][te_nummer]"]);
    ?>
</td>
            <td><?php 
    echo $form->field($modelTeilieigentum, 'gefoerdert')->dropDownList([1 => 'Ja', 0 => 'Nein'], ['name' => "Teileigentumseinheiten[{$key}][gefoerdert]"]);
    ?>
</td>
            <td><?php 
    echo $form->field($modelTeilieigentum, 'geschoss')->textInput(["maxlength" => true, 'name' => "Teileigentumseinheiten[{$key}][geschoss]"]);
    ?>
</td>
            <td><?php