public function init() { $this->name = \Yii::t('app', "Managment {email} templates", ['email' => 'email']); $this->modelShowAttribute = "event_name"; $this->modelClassName = CmsEventEmailTemplate::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getEventEmailTemplate() { return $this->hasOne(CmsEventEmailTemplate::className(), ['id' => 'event_email_template_id']); }