バージョン選択

フォーラム

メニュー

オンライン状況

45 人のユーザが現在オンラインです。 (36 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 45
もっと...

サイト内検索

質問 > フロント機能 > Processor改造時のRepositoryの使用方法につきまして[規格によらず在庫を増減させる]

フロント機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
takax3
投稿日時: 2021/3/24 16:23
対応状況: 解決済
新米
登録日: 2021/3/21
居住地:
投稿: 3
Re: Processor改造時のRepositoryの使用方法につきまして
__constructを以下の通りに書き換えたところ、在庫が規格によらず一括で減少する動作を実装出来ました。
ありがとうございました。

/**
* StockReduceProcessor constructor.
*
* @param ProductStockRepository $productStockRepository
* @param EntityManagerInterface $entityManager
* @param ProductRepository $productRepository
*/
public function __construct(ProductStockRepository $productStockRepository, EntityManagerInterface $entityManager, ProductRepository $productRepository)
{
$this->productRepository = $productRepository;
$this->productStockRepository = $productStockRepository;
$this->entityManager = $entityManager;
}
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   Processor改造時のRepositoryの使用方法につきまして[規格によらず在庫を増減させる] takax3 2021/3/21 18:44
     Re: Processor改造時のRepositoryの使用方法につきまして takax3 2021/3/21 18:46
       Re: Processor改造時のRepositoryの使用方法につきまして umebius 2021/3/24 0:01
       » Re: Processor改造時のRepositoryの使用方法につきまして takax3 2021/3/24 16:23

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,885名です
総投稿数は110,000件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2313
5
umebius
2085
6
yuh
1819
7
h_tanaka
1646
8
red
1570
9
mcontact
1295
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.