From 6995cbd58810aa752ecd5519bf517720673cebdd Mon Sep 17 00:00:00 2001 From: Jacob Tobiasz Date: Mon, 9 Sep 2024 13:06:41 +0200 Subject: [PATCH] Fix the Order test entity configuration --- tests/Application/config/packages/_sylius.yaml | 2 +- tests/Application/config/packages/doctrine.yaml | 9 +++++++++ tests/Application/src/Entity/.gitignore | 0 3 files changed, 10 insertions(+), 1 deletion(-) delete mode 100644 tests/Application/src/Entity/.gitignore diff --git a/tests/Application/config/packages/_sylius.yaml b/tests/Application/config/packages/_sylius.yaml index 74bd8d27..9c226736 100644 --- a/tests/Application/config/packages/_sylius.yaml +++ b/tests/Application/config/packages/_sylius.yaml @@ -21,4 +21,4 @@ sylius_order: resources: order: classes: - model: Tests\CommerceWeavers\SyliusTpayPlugin\Application\Entity\Order + model: App\Entity\Order diff --git a/tests/Application/config/packages/doctrine.yaml b/tests/Application/config/packages/doctrine.yaml index f51ba5a2..7743f35a 100644 --- a/tests/Application/config/packages/doctrine.yaml +++ b/tests/Application/config/packages/doctrine.yaml @@ -12,3 +12,12 @@ doctrine: charset: UTF8 url: '%env(resolve:DATABASE_URL)%' + orm: + entity_managers: + default: + mappings: + App: + is_bundle: false + type: attribute + dir: '%kernel.project_dir%/src/Entity' + prefix: App\Entity diff --git a/tests/Application/src/Entity/.gitignore b/tests/Application/src/Entity/.gitignore deleted file mode 100644 index e69de29b..00000000