Пример #1
0
 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();
 }
Пример #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTypePrice()
 {
     return $this->hasOne(ShopTypePrice::className(), ['id' => 'type_price_id']);
 }
Пример #4
0
 /**
  * @return $this
  */
 public function getTypePrices()
 {
     return $this->hasMany(ShopTypePrice::className(), ['id' => 'type_price_id'])->viaTable('{{%shop_discount2type_price}}', ['discount_id' => 'id']);
 }