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