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(); }
/** * @return \yii\db\ActiveQuery */ public function getPersonType() { return $this->hasOne(ShopPersonType::className(), ['id' => 'person_type_id']); }
/** * @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']); }