0
1

More than 3 years have passed since last update.

Compile Error: Declaration of EntityManager_xxxxxxx::getProxyInitializer() が出た時の対応

Posted at

プロキシの生成でコケてたらsymfonyのコンパイルエラーに遭遇した

Compile Error: Declaration of EntityManager_9a5be93::getProxyInitializer()   
must be compatible with ProxyManager\Proxy\LazyLoadingInterface::getProxyIn  
itializer(): ?Closure 

今回はその対応。

手動でキャッシュクリア

var/cache/配下とかにキャッシュがあるので、手動で削除する。

$ rm -Rf ./var/cache/*

composerのautoloaderを修正

$ composer dump-autoload
$ composer install  --optimize-autoloader
0
1
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
1