public function init()
 {
     $this->name = \Yii::t('skeeks/shop/app', 'Types of payers');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopPersonType::className();
     parent::init();
 }
 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Types of payers');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopPersonType::className();
     parent::init();
 }
Пример #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPersonType()
 {
     return $this->hasOne(ShopPersonType::className(), ['id' => 'person_type_id']);
 }
Пример #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPersonTypes()
 {
     return $this->hasMany(ShopPersonType::className(), ['id' => 'person_type_id'])->viaTable('{{%shop_pay_system_person_type}}', ['pay_system_id' => 'id']);
 }