Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Do not force to use annotations for Sylius project #335

Open
wants to merge 2 commits into
base: 1.12
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 86 additions & 2 deletions config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,90 @@ doctrine:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
dir: '%kernel.project_dir%/src/Entity/Main'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better names: App, Custom, Application

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
Empty file added src/Entity/Main/.gitignore
Empty file.