public function init() { $this->name = \skeeks\cms\shop\Module::t('app', 'Types of prices'); $this->modelShowAttribute = "name"; $this->modelClassName = ShopTypePrice::className(); parent::init(); }
public function init() { $this->name = \Yii::t('skeeks/shop/app', 'Types of prices'); $this->modelShowAttribute = "name"; $this->modelClassName = ShopTypePrice::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getTypePrice() { return $this->hasOne(ShopTypePrice::className(), ['id' => 'type_price_id']); }
/** * @return $this */ public function getTypePrices() { return $this->hasMany(ShopTypePrice::className(), ['id' => 'type_price_id'])->viaTable('{{%shop_discount2type_price}}', ['discount_id' => 'id']); }