Doctrine Behaviors changelog

← Doctrine Behaviors changelog

Ashterix

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

en/docs/doctrine/doctrine-behaviors/change_log.md new file +43 āˆ’0

1 + # Doctrine Behaviors changelog
2 +
3 + The package has no release notes (the repository's `CHANGELOG.md` ends at 1.0.0); this history is compiled from the tags and commits of the UFO-Tech fork.
4 +
5 + ## 2.0.0 (2026-09-28)
6 +
7 + * PHP >= 8.4; `doctrine/orm` ^3.7, `doctrine/dbal` ^4.2 (DBAL 3 is no longer supported), `doctrine/persistence` ^4.0, `doctrine/doctrine-bundle` ^3.0; Symfony ^7.0 | ^8.0.
8 + * `symfony/security-bundle` is now a dependency: the default `UserProvider` uses `Symfony\Bundle\SecurityBundle\Security`.
9 + * Properties of the Blameable, Sluggable, SoftDeletable and Uuidable traits got default values — fixes `Error: Typed property … must not be accessed before initialization` ([Fixed issues](/docs/doctrine/doctrine-behaviors/known_issues/fixed)).
10 + * Translatable: a unique translation index name longer than 63 characters is replaced with `t_<hash>_unique_translation`.
11 + * Tests moved to PHPUnit 11 and run in Docker on SQLite, MySQL and PostgreSQL.
12 +
13 + **Upgrading from 1.0.x:** PHP 8.4 and DBAL 4; upgrade DoctrineBundle to 3.x. For translation tables with long names, generate a migration — the unique index name changes. In Sluggable with `shouldRegenerateSlugOnUpdate() = false` a "not generated yet" slug is now an empty string, not `null`.
14 +
15 + ## 1.0.4 (2025-08-20)
16 +
17 + * `doctrine/persistence` ^4.0 allowed.
18 +
19 + ## 1.0.3 (2025-02-11)
20 +
21 + * Timestampable: `createdAt` and `updatedAt` are nullable again with a `null` default ([PR #1](https://github.com/UFO-Tech/DoctrineBehaviors/pull/1)).
22 +
23 + ## 1.0.2 (2025-02-06)
24 +
25 + * Translatable: removed the `merge` cascade, which does not exist in Doctrine ORM 3.
26 +
27 + ## 1.0.1 (2025-02-03)
28 +
29 + * Trait properties got native types instead of PHPDoc `@var`; Tree got a `parentNodePath` property.
30 + * Typed properties without default values caused errors fixed in 1.0.3 and 2.0.0.
31 +
32 + ## 1.0.0 (2025-01-13)
33 +
34 + First release of the UFO-Tech fork.
35 +
36 + * Package `ufo-tech/doctrine-behaviors`, namespace `Ufo\DoctrineBehaviors` (`Miets\DoctrineBehaviors` in the Miets fork).
37 + * PHP >= 8.2, Symfony ^7.0 | ^8.0, `doctrine/orm` ^3.3, `doctrine/dbal` ^3.2 | ^4.2, `doctrine/doctrine-bundle` ^2.6, `nette/utils` ^4.0.
38 + * Code moved to the ORM 3 API: `ClassMetadata` instead of `ClassMetadataInfo`, `Doctrine\Persistence\Event\LifecycleEventArgs`.
39 +
40 + ## Before the fork
41 +
42 + * [KnpLabs/DoctrineBehaviors](https://github.com/KnpLabs/DoctrineBehaviors) — the original library; does not support Symfony newer than 6.3.
43 + * [Miets/DoctrineBehaviors](https://github.com/Miets/DoctrineBehaviors) (2023-12 … 2024-02) — Symfony 7 support, listeners via `#[AsDoctrineListener]`.