Relation Model And Form

Hi,

i have two models with relation between them

Attribute model


/**

     * @return \yii\db\ActiveQuery

     */

    public function getAttributeOption()

    {

         return $this->hasMany(AttributeOption::className(), ['attribute_id' => 'id']);

    }

and AttributeOption model

in my form i set form




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

<?= $form->field($model, 'name') ?>

<?= $form->field($model, 'attribute_value_type')->dropDownList($valueType); ?>


<?= $form->field($model->attributeOption, 'value') ?>



but on a line <?= $form->field($model->attributeOption, ‘value’) ?> =>

I believe its method name conflict with one of the core methods