Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配送方法で指定されている支払方法を削除するとエラー #4120

Open
faiare opened this issue Mar 27, 2019 · 1 comment
Open
Labels
Milestone

Comments

@faiare
Copy link

faiare commented Mar 27, 2019

概要(Overview)

配送方法で指定されている支払方法を削除すると、(フロント)購入画面・(管理)配送方法設定画面でシステムエラー(EntityNotFoundException)になります。

期待する内容(Expect) or 要望 (Requirement)

支払方法が削除された場合、配送方法の関連付けも削除
もしくは配送方法で指定中の支払方法は削除させないよう変更

再現手順(Procedure)

  1. EC-CUBE(4.0.2)を新規インストールしてserver:run
  2. 管理画面にログイン
  3. 支払方法一覧からデフォルトの支払い方法のいずれかを削除
  4. 配送方法一覧からいずれかの配送方法をクリック
  5. EntityNotFoundExceptionが発生(Entity of type 'Eccube\Entity\Payment' for IDs id(xxx) was not found)

環境 (environment)

  • EC-CUBE: 4.0.2
  • PHP: 7.2.15
  • DB:
    • SQLite 3.24.0

関連情報 (Ref)

@okazy
Copy link
Contributor

okazy commented Mar 28, 2019

報告ありがとうございます。

SQLiteはシステム要件にも書いてありますように 開発用途向け となっています。

▼システム要件
http://doc4.ec-cube.net/quickstart_requirement

SQLiteは導入が簡単な反面、外部キー制約等の要件がpostgres, mysqlと異なります。

DB周りの動作を確認する際はpostgres, mysqlを利用してください。

postgres, mysqlで報告いただいている再現手順を実行すると 関連するデータがあるため「支払い方法」を削除できませんでした のエラーが出ます。

ご確認よろしくお願いします。

@okazy okazy added this to the 4.0.x milestone Mar 28, 2019
@okazy okazy added the question Further information is requested label Mar 28, 2019
@chihiro-adachi chihiro-adachi modified the milestones: 4.0.x, Not release Mar 28, 2019
@chihiro-adachi chihiro-adachi added wontfix and removed question Further information is requested labels Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants