From 18a46900a6650fa072705e4ddab84456f98e1c28 Mon Sep 17 00:00:00 2001 From: Mateusz Zalewski Date: Tue, 19 Mar 2019 10:26:58 +0100 Subject: [PATCH] Do not force to use annotations for Sylius project --- config/packages/doctrine.yaml | 90 +++++++++++++++++++++++- src/Entity/Main/.gitignore | 0 src/Resources/config/doctrine/.gitignore | 0 3 files changed, 87 insertions(+), 3 deletions(-) create mode 100644 src/Entity/Main/.gitignore create mode 100644 src/Resources/config/doctrine/.gitignore diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml index 312dc773d1..31fcec0cf5 100644 --- a/config/packages/doctrine.yaml +++ b/config/packages/doctrine.yaml @@ -18,7 +18,91 @@ doctrine: mappings: App: is_bundle: false - type: annotation - dir: '%kernel.project_dir%/src/Entity' - prefix: 'App\Entity' + type: yml + dir: '%kernel.project_dir%/src/Resources/config/doctrine' + prefix: 'App\Entity\Main' alias: App + SyliusAddressing: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/Addressing' + prefix: 'App\Entity\Addressing' + alias: SyliusAddressing + SyliusAdminApi: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/AdminApi' + prefix: 'App\Entity\AdminApi' + alias: SyliusAdminApi + SyliusChannel: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/Channel' + prefix: 'App\Entity\Channel' + alias: SyliusChannel + SyliusCurrency: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/Currency' + prefix: 'App\Entity\Currency' + alias: SyliusCurrency + SyliusCustomer: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/Customer' + prefix: 'App\Entity\Customer' + alias: SyliusCustomer + SyliusLocale: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/Locale' + prefix: 'App\Entity\Locale' + alias: SyliusLocale + SyliusOrder: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/Order' + prefix: 'App\Entity\Order' + alias: SyliusOrder + SyliusPayment: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/Payment' + prefix: 'App\Entity\Payment' + alias: SyliusPayment + SyliusProduct: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/Product' + prefix: 'App\Entity\Product' + alias: SyliusProduct + SyliusPromotion: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/Promotion' + prefix: 'App\Entity\Promotion' + alias: SyliusPromotion + SyliusShipping: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/Shipping' + prefix: 'App\Entity\Shipping' + alias: SyliusShipping + SyliusTaxation: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/Taxation' + prefix: 'App\Entity\Taxation' + alias: SyliusTaxation + SyliusTaxonomy: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/Taxonomy' + prefix: 'App\Entity\Taxonomy' + alias: SyliusTaxonomy + SyliusUser: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity/User' + prefix: 'App\Entity\User' + alias: SyliusUser diff --git a/src/Entity/Main/.gitignore b/src/Entity/Main/.gitignore new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Resources/config/doctrine/.gitignore b/src/Resources/config/doctrine/.gitignore new file mode 100644 index 0000000000..e69de29bb2