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