public function init() { $this->name = \Yii::t('skeeks/shop/app', 'Affiliates'); $this->modelShowAttribute = "id"; $this->modelClassName = ShopAffiliate::className(); parent::init(); }
public function init() { $this->name = \skeeks\cms\shop\Module::t('app', 'Affiliates'); $this->modelShowAttribute = "id"; $this->modelClassName = ShopAffiliate::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getAffiliate() { return $this->hasOne(ShopAffiliate::className(), ['id' => 'affiliate_id']); }
/** * @return \yii\db\ActiveQuery */ public function getShopAffiliates() { return $this->hasMany(ShopAffiliate::className(), ['plan_id' => 'id']); }