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

Memberの物理削除対応 #2496

Conversation

chihiro-adachi
Copy link
Contributor

@chihiro-adachi chihiro-adachi commented Sep 8, 2017

概要(Overview・Refs Issue)

方針(Policy)

  • del_flg を廃止し、物理削除するように変更
  • 参照制約のチェックはもともと実装済、変更なし
  • sqliteの場合、参照制約がデフォルトで無効のため、接続時に有効になるように対応
  • インストール時の初期データでcreator_idを登録しないように変更

テスト(Test)

  • Travis-ciにパスすることを確認

@ryo-endo ryo-endo added this to the 3.1.0 milestone Sep 11, 2017
->setRank(0);

$em->persist($Member);
$em->remove($Member);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

呼び出し元のMemberController#deleteForeignKeyConstraintViolationExceptionの対応が必要。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kiy0taka 一応\Exceptionでcatchしているので、ハンドリングは行われるはずですが、厳密にしたほうがよいですか?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把握しました。catch問題はまた別で考えましょう。

->setRank(0);

$em->persist($Member);
$em->remove($Member);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把握しました。catch問題はまた別で考えましょう。

@kiy0taka kiy0taka merged commit 4e29566 into EC-CUBE:experimental/physical-delete Sep 15, 2017
@chihiro-adachi chihiro-adachi deleted the physical-delete-member branch September 15, 2017 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants