public function init() { $this->name = \Yii::t('skeeks/shop/app', 'Buyers'); $this->modelShowAttribute = "name"; $this->modelClassName = ShopBuyer::className(); parent::init(); }
public function init() { $this->name = \skeeks\cms\shop\Module::t('app', 'Buyers'); $this->modelShowAttribute = "name"; $this->modelClassName = ShopBuyer::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getShopBuyers() { return $this->hasMany(ShopBuyer::className(), ['shop_person_type_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getBuyer() { return $this->hasOne(ShopBuyer::className(), ['id' => 'buyer_id']); }
/** * * @return ActiveQuery */ public function getShopBuyers() { return $this->hasMany(ShopBuyer::className(), ['cms_user_id' => 'id'])->via('user'); }
/** * @return \yii\db\ActiveQuery */ public function getElement() { return $this->hasOne(ShopBuyer::className(), ['id' => 'element_id']); }