zenstruck / foundry

A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.
https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html
MIT License
643 stars 70 forks source link

Migration Guide to version 2 #619

Closed Chris53897 closed 3 months ago

Chris53897 commented 3 months ago

Could you please add a link from the release note https://github.com/zenstruck/foundry/releases/tag/v2.0.0 to the migration guide? Additional in the README.md would be great

Chris53897 commented 3 months ago

'src/Factory' should be included in the path array.

return RectorConfig::configure() ->withPaths(['src/Factory', 'tests']) // add all paths where Foundry is used ->withSets([FoundrySetList::UP_TO_FOUNDRY_2]) ;

nikophil commented 3 months ago

Hi @Chris53897

Could you please add a link from the release note https://github.com/zenstruck/foundry/releases/tag/v2.0.0 to the migration guide? Additional in the README.md would be great

yes, this a nice suggestion

nikophil commented 3 months ago

release note updated + readme and upgrade guide updated in 2.x and 1.x as well