Skip to content

Releases: spiral-packages/database-seeder

v3.3.0

17 Oct 06:34
c15c625
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 3.2.0...3.3.0

v3.2.0

22 Jan 14:05
361c64f
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.1.1...3.2.0

v3.1.1

12 Jan 14:50
557fb50
Compare
Choose a tag to compare

What's Changed

  • Remove unused doctrine/annotations dependency by @msmakouz in #35

Full Changelog: 3.1.0...3.1.1

v3.1.0

20 Nov 09:49
cdd94f0
Compare
Choose a tag to compare

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

10 Nov 07:45
b537345
Compare
Choose a tag to compare

What's Changed

Read more about using the package here https://spiral.dev/docs/testing-database

Full Changelog: v2.4.0...3.0.0

v2.4.0

02 Oct 10:03
e60b238
Compare
Choose a tag to compare

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:

  1. 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->...

image

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

27 Sep 12:27
910f4e9
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.2.1...v2.3.0

v2.2.1

27 Sep 08:29
37ed636
Compare
Choose a tag to compare

What's Changed

  • Bump actions/checkout from 3 to 4 by @dependabot in #24
  • Fixed wrong in assert functions DatabaseAsserts::assertTableHasEntity and DatabaseAsserts::assertTableHas by @alexey-shapilov in #23

New Contributors

Full Changelog: 2.1.2...v2.2.1

2.2.0

12 Jul 07:25
0c999a0
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.1.1...2.1.2

v2.1.1

14 Sep 10:01
5dc931f
Compare
Choose a tag to compare

What's Changed

  • Removed static, fixed checking entity existence by @msmakouz in #14

Full Changelog: 2.1.0...2.1.1