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

Doctrine Helper changelog

The package has no separate release notes; the history is compiled from tags and commits.

1.1.0 (2025-06-09)

  • New UuidIdTrait — a replacement for UniqueUuidIdTrait, with an explicit #[ORM\GeneratedValue(strategy: 'NONE')]. UniqueUuidIdTrait is marked @deprecated.
  • New UniqueIdTrait — id as uniqid(), column string(13), unique.
  • Uuid::generate() returns UUID v7 instead of v4.
  • AutoIncrementIdTrait: the column is explicitly INTEGER unsigned (was #[ORM\Column] without parameters).
  • UniqueUuidIdTrait: the column is string(36), unique (was string without a length).
  • composer.json declares doctrine/dbal ^3.2|^4.2 and doctrine/orm ^2.12|^3.2.
  • The Ufo\DoctrineHelper\ExampleEnum and Ufo\DoctrineHelper\DBAL\ExampleEnumType examples moved from src/ to test fixtures (Ufo\DoctrineHelper\Tests\Fixtures\...); tests for Uuid added.

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.

1.0.1 (2025-03-21)

  • AbstractEnumType: typed signatures convertToPHPValue(mixed $value, ...): mixed and convertToDatabaseValue(mixed $value, ...): string|int — DBAL 4 compatibility.
  • README: mapping_types: enum: string added to the configuration example.

1.0.0 (2024-06-10)

First release: AbstractEnumType, AutoIncrementIdTrait, UniqueUuidIdTrait, the IHaveAutoincrementId and IHaveUniqueUuid interfaces, Uuid (generate() — UUID v4, hash() — UUID v3).