feat: add doctrine-fixtures-bundle & phpstan, restructure entity mapping

- Add doctrine/doctrine-fixtures-bundle (^4.3) for database fixtures
- Add phpstan/phpstan (^2.0) as dev dependency for static analysis
- Register DoctrineFixturesBundle in dev/test environments
- Move entity mapping to src/Data/Doctrine/Entity/Saatgut
- Update entity prefix to App\Data\Doctrine\Entity\Saatgut
- Change entity alias from App to Saatgut
This commit is contained in:
2026-06-17 19:39:13 +02:00
parent 3226205889
commit 98e4abcfb0
16 changed files with 794 additions and 5 deletions
+1
View File
@@ -5,4 +5,5 @@ return [
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true],
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
];
+3 -3
View File
@@ -17,9 +17,9 @@ doctrine:
App:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App
dir: '%kernel.project_dir%/src/Data/Doctrine/Entity/Saatgut'
prefix: 'App\Data\Doctrine\Entity\Saatgut'
alias: Saatgut
when@test:
doctrine: