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