示例#1
0
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     $attributeLabels = parent::attributeLabels();
     $attributeLabels['variable_group_i18n_title'] = Yii::t('kalibao', 'variable:variable_group_id');
     $attributeLabels['variable_i18n_description'] = Yii::t('kalibao', 'model:description');
     return $attributeLabels;
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVariableGroup()
 {
     return $this->hasOne(VariableGroup::className(), ['id' => 'variable_group_id']);
 }