LoginSignup
0
0

More than 3 years have passed since last update.

手動でapp/proxy/entity/src/Eccube/Entity以下のエンティティ拡張用のファイルを消してしまったときの対処法

Last updated at Posted at 2019-08-13

手動でapp/proxy/entity/src/Eccube/Entity以下のエンティティ拡張用のファイルを消してしまったとき、以下のようなエラーが発生する。

FatalErrorException
Compile Error: Symfony\Component\Debug\DebugClassLoader::loadClass(): Failed opening required
 '(プロジェクトルート)/app/proxy/entity/src/Eccube/Entity/ProductClass.php' 
(include_path='.:')

composerのオートローディング時に削除したファイルを読み込んでしまうことが原因のため、composerのオートローディングのクラスマップを再生成することにより、解決する。

$ composer dump-autoload
Generated optimized autoload files containing 7238 classes

上記コマンドで対応付けのためのクラスマップが生成される。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0