Skip to content

Commit

Permalink
Fix "[Semantical Error] The annotation "@doctrine\ORM\Mapping\Table" …
Browse files Browse the repository at this point in the history
…in class Eccube\Entity\BaseInfo was never imported. Did you maybe forget to add a "use" statement for this annotation?"
  • Loading branch information
chihiro-adachi committed Dec 13, 2023
1 parent 5caa3ef commit 1cd2d29
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ext-zip": "*",
"composer/ca-bundle": "^1.1",
"composer/composer": "^2.0",
"doctrine/annotations": "^1.6",
"doctrine/annotations": "^2.0",
"doctrine/cache": "^2.0",
"doctrine/collections": "^1.5",
"doctrine/common": "^3.0",
Expand Down
26 changes: 13 additions & 13 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/Eccube/Command/GenerateProxyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ protected function configure()
protected function execute(InputInterface $input, OutputInterface $output)
{
// アノテーションを読み込めるように設定.
AnnotationRegistry::registerAutoloadNamespace('Eccube\Annotation', __DIR__.'/../../../src');
// TODO doctrine/anntationsをv2へアップデート。影響がある場合は要調査。
//AnnotationRegistry::registerAutoloadNamespace('Eccube\Annotation', __DIR__.'/../../../src');

$projectDir = $this->eccubeConfig->get('kernel.project_dir');
$includeDirs = [$projectDir.'/app/Customize/Entity'];
Expand Down
3 changes: 2 additions & 1 deletion src/Eccube/DependencyInjection/Compiler/PurchaseFlowPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public function process(ContainerBuilder $container)
self::PURCHASE_PROCESSOR_TAG => 'addPurchaseProcessor',
];

AnnotationRegistry::registerAutoloadNamespace('Eccube\Annotation', __DIR__.'/../../../../src');
// TODO doctrine/anntationsをv2へアップデート。影響がある場合は要調査。
//AnnotationRegistry::registerAutoloadNamespace('Eccube\Annotation', __DIR__.'/../../../../src');
$reader = new AnnotationReader();

foreach ($processorTags as $tag => $methodName) {
Expand Down

0 comments on commit 1cd2d29

Please sign in to comment.