手動で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
上記コマンドで対応付けのためのクラスマップが生成される。