public function init() { $this->name = \Yii::t('skeeks/form2/app', 'Control of properties'); $this->modelShowAttribute = "value"; $this->modelClassName = Form2FormPropertyEnum::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getEnums() { return $this->hasMany(Form2FormPropertyEnum::className(), ['property_id' => 'id']); }