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

Entity 拡張を解除する方法 #4707

Open
okazy opened this issue Sep 25, 2020 · 0 comments
Open

Entity 拡張を解除する方法 #4707

okazy opened this issue Sep 25, 2020 · 0 comments
Labels
enhancement 機能追加
Milestone

Comments

@okazy
Copy link
Contributor

okazy commented Sep 25, 2020

概要(Overview)

Entityのカスタマイズ に記載の方法で Entity 拡張が可能であるが、Customize ディレクトリで拡張した場合に解除ができない。
プラグインの場合は「無効化 -> アンインストール(ファイルの削除)」の手順で削除しているので問題は発生していないが、Customize ディレクトリは無効化処理が用意されていない。
Trait を先に削除してしまうと bin/console eccube:generate:proxies コマンドで Trait が読み込めないと怒られてしまうので、手動でproxyファイルとキャッシュを削除する必要がある。

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

例えば以下のように無効化する Trait を指定できるようにしてはどうか。

bin/console eccube:generate:proxies --exclude=Customize\Entity\CustomerTrait

実装を確認してみたが、修正範囲が大きそうなため手が出しにくい。。。

再現手順(Procedure)

  1. Customize ディレクトリ配下に Trait を作成して Entity を拡張
  2. bin/console eccube:generate:proxies を実行
  3. Trait を削除
  4. bin/console eccube:generate:proxies を実行

環境 (environment)

  • EC-CUBE: 4.0.5

関連情報 (Ref)

#2267

@okazy okazy added the enhancement 機能追加 label Sep 25, 2020
@okazy okazy added this to the 4.0.x milestone Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 機能追加
Projects
None yet
Development

No branches or pull requests

1 participant