/** * @return \yii\db\ActiveQuery */ public function getMailTemplateGroup() { return $this->hasOne(MailTemplateGroup::className(), ['id' => 'mail_template_group_id']); }
/** * @inheritdoc */ public function attributeLabels() { $attributeLabels = parent::attributeLabels(); $attributeLabels['mail_template_group_i18n_title'] = Yii::t('kalibao', 'model:title'); return $attributeLabels; }