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();
 }
Beispiel #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getShopBuyers()
 {
     return $this->hasMany(ShopBuyer::className(), ['shop_person_type_id' => 'id']);
 }
Beispiel #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBuyer()
 {
     return $this->hasOne(ShopBuyer::className(), ['id' => 'buyer_id']);
 }
Beispiel #5
0
 /**
  *
  * @return ActiveQuery
  */
 public function getShopBuyers()
 {
     return $this->hasMany(ShopBuyer::className(), ['cms_user_id' => 'id'])->via('user');
 }
Beispiel #6
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getElement()
 {
     return $this->hasOne(ShopBuyer::className(), ['id' => 'element_id']);
 }