public function init() { $this->name = \skeeks\cms\shop\Module::t('app', 'Plans affiliate commissions'); $this->modelShowAttribute = "name"; $this->modelClassName = ShopAffiliatePlan::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getPlan() { return $this->hasOne(ShopAffiliatePlan::className(), ['id' => 'plan_id']); }