Doctrine Helper changelog

← Doctrine Helper changelog

Ashterix

docs: Doctrine section with Doctrine Behaviors and Doctrine Helper (uk + en)

en/docs/doctrine/doctrine-helper/change_log.md new file +24 −0

1 + # Doctrine Helper changelog
2 +
3 + The package has no separate release notes; the history is compiled from tags and commits.
4 +
5 + ## 1.1.0 (2025-06-09)
6 +
7 + * New `UuidIdTrait` — a replacement for `UniqueUuidIdTrait`, with an explicit `#[ORM\GeneratedValue(strategy: 'NONE')]`. `UniqueUuidIdTrait` is marked `@deprecated`.
8 + * New `UniqueIdTrait` — `id` as `uniqid()`, column `string(13)`, unique.
9 + * `Uuid::generate()` returns UUID v7 instead of v4.
10 + * `AutoIncrementIdTrait`: the column is explicitly `INTEGER` unsigned (was `#[ORM\Column]` without parameters).
11 + * `UniqueUuidIdTrait`: the column is `string(36)`, unique (was `string` without a length).
12 + * `composer.json` declares `doctrine/dbal` ^3.2|^4.2 and `doctrine/orm` ^2.12|^3.2.
13 + * The `Ufo\DoctrineHelper\ExampleEnum` and `Ufo\DoctrineHelper\DBAL\ExampleEnumType` examples moved from `src/` to test fixtures (`Ufo\DoctrineHelper\Tests\Fixtures\...`); tests for `Uuid` added.
14 +
15 + **Upgrading from 1.0.x:** generate a migration — the `id` columns of entities using `AutoIncrementIdTrait` (unsigned) and `UniqueUuidIdTrait` (length 36, unique) change. New UUIDs are version 7; existing v4 values stay valid. Replace `UniqueUuidIdTrait` with `UuidIdTrait`.
16 +
17 + ## 1.0.1 (2025-03-21)
18 +
19 + * `AbstractEnumType`: typed signatures `convertToPHPValue(mixed $value, ...): mixed` and `convertToDatabaseValue(mixed $value, ...): string|int` — DBAL 4 compatibility.
20 + * README: `mapping_types: enum: string` added to the configuration example.
21 +
22 + ## 1.0.0 (2024-06-10)
23 +
24 + First release: `AbstractEnumType`, `AutoIncrementIdTrait`, `UniqueUuidIdTrait`, the `IHaveAutoincrementId` and `IHaveUniqueUuid` interfaces, `Uuid` (`generate()` — UUID v4, `hash()` — UUID v3).