Releases: spiral-packages/database-seeder
v3.3.0
What's Changed
- Add @return to abstract factory by @markinigor in #42
- Add phpdoc for make functions in AbstractFactory by @markinigor in #43
New Contributors
- @markinigor made their first contribution in #42
Full Changelog: 3.2.0...3.3.0
v3.2.0
What's Changed
- Update ORM Heap Cleaning Default Behavior by @butschster in #37
Full Changelog: 3.1.1...3.2.0
v3.1.1
What's Changed
Full Changelog: 3.1.0...3.1.1
v3.1.0
What's Changed
- Improved assertions for Entity and Tables by @butschster in #34
- Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in #32
Full Changelog: 3.0.0...3.1.0
v3.0.0
What's Changed
- Enhancements database testing by @msmakouz in #28
- Add TransactionStrategy, add helper trait by @msmakouz in #31
Read more about using the package here https://spiral.dev/docs/testing-database
Full Changelog: v2.4.0...3.0.0
v2.4.0
What's Changed
We have enriched the type information of entity factory by integrating Psalm annotations. This enhancement facilitates developers by offering precise return type definitions.
Here's a snapshot of what has been done:
- For a factory, you can now clearly define the return type. Here is an example utilizing
@implements FactoryInterface<...>
annotation:
use Spiral\DatabaseSeeder\Factory\AbstractFactory;
use Spiral\DatabaseSeeder\Factory\FactoryInterface;
use App\Domain\User\Entity\User;
/**
* @implements FactoryInterface<User>
*/
final class UserFactory extends AbstractFactory
{
//...
}
With this annotation in place, your IDE will now provide suggestive autocomplete options, making the code interaction more intuitive and error-prone.
Here are examples showing how IDE suggestions would appear post this update:
$user = UserFactory::new()
->verified('secret')
->createOne();
$user->...
This update aims to streamline the development process by providing clearer, type-informed interactions within the codebase.
Full Changelog: v2.3.0...v2.4.0
v2.3.0
v2.2.1
What's Changed
- Bump actions/checkout from 3 to 4 by @dependabot in #24
- Fixed wrong in assert functions
DatabaseAsserts::assertTableHasEntity
andDatabaseAsserts::assertTableHas
by @alexey-shapilov in #23
New Contributors
- @alexey-shapilov made their first contribution in #23
Full Changelog: 2.1.2...v2.2.1
2.2.0
What's Changed
- Bump nick-invision/retry from 2.8.1 to 2.8.2 by @dependabot in #16
- Bump nick-invision/retry from 2.8.2 to 2.8.3 by @dependabot in #17
- Add support for doctrine/annotations 2.x by @butschster in #20
- Updating Scaffolder declarations config by @msmakouz in #21
- Fixes problem with seeding seeder by given class name by @butschster in #22
Full Changelog: 2.1.1...2.1.2
v2.1.1
What's Changed
Full Changelog: 2.1.0...2.1.1