Additional configs and compiler passes to avoid some common problem when using zenstruck/foundry with symfony components
zenstruck/foundry alongside some additional configs and compiler passes.
to avoid some common problems when using
zenstruck/foundry with symfony components.
$ composer req --dev icanhazstring/foundry-bundle
Enable the bundle by adding it to the list of registered bundles
config/bundles.php file of your project:
return [ // ... icanhazstring\FoundryBundle\FoundryBundle::class => ['test' => true], ];
This package allows you to manually assign IDs to a Doctrine entity, even when the entity uses the stategies AUTO, SEQUENCE, IDENTITY or UUID.