Skip to content

Commit

Permalink
キャッシュされたDoctrineメタデータで正しくスキーマが更新されない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kiy0taka committed Nov 25, 2019
1 parent 43100b5 commit c2c63c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Eccube/Service/PluginService.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ public function postInstall($config, $source)
*/
public function generateProxyAndUpdateSchema(Plugin $plugin, $config, $uninstall = false, $saveMode = true)
{
// キャッシュしたメタデータを利用しないようにキャッシュドライバを外しておく
$this->entityManager->getMetadataFactory()->setCacheDriver(null);

$this->generateProxyAndCallback(function ($generatedFiles, $proxiesDirectory) use ($saveMode) {
$this->schemaService->updateSchema($generatedFiles, $proxiesDirectory, $saveMode);
}, $plugin, $config, $uninstall);
Expand Down

0 comments on commit c2c63c4

Please sign in to comment.