/** * @return \yii\db\ActiveQuery */ public function getUserStores() { return $this->hasMany(UserStore::className(), ['store_id' => 'store_id']); }