Пример #1
0
 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Stocks');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopStore::className();
     parent::init();
 }
Пример #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStore()
 {
     return $this->hasOne(ShopStore::className(), ['id' => 'store_id']);
 }