public function init() { $this->name = \Yii::t('skeeks/form2/app', 'Messages'); $this->modelShowAttribute = "id"; $this->modelClassName = Form2FormSend::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getForm2FormSends() { return $this->hasMany(Form2FormSend::className(), ['form_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getElement() { return $this->hasOne(Form2FormSend::className(), ['id' => 'element_id']); }