Skip to content

Update: Bump Doctrine to ORM 3 and collections 2 (Case 212955) - #26

Merged
janopae merged 1 commit into
masterfrom
212955-doctrine-orm-3-collections-2
Jul 31, 2026
Merged

Update: Bump Doctrine to ORM 3 and collections 2 (Case 212955)#26
janopae merged 1 commit into
masterfrom
212955-doctrine-orm-3-collections-2

Conversation

@janopae

@janopae janopae commented Jul 31, 2026

Copy link
Copy Markdown
Member

Doctrine ORM 3 removed the annotation driver (handled in fce9de9) and requires the entity mappings to be declared explicitly (handled in 34cc2b5). With those in place, raise doctrine/orm to ^3.0 and doctrine/collections to ^2.0. This also pulls in DBAL 4 and persistence 4 as transitive upgrades. The MappedSuperclass mapping and all repositories compile unchanged; Collection/ArrayCollection usage required no changes (generics only).

One code fix was needed: AppClassTemplatesTest constructed its EntityManager by passing EventManager to DriverManager::getConnection(), which DBAL 4 no longer accepts. Move the EventManager to the EntityManager constructor instead, which is the correct API in ORM 3 / DBAL 4.

Doctrine ORM 3 removed the annotation driver (handled in prep package B) and
requires the entity mappings to be declared explicitly (handled in prep
package C). With those in place, raise doctrine/orm to ^3.0 and
doctrine/collections to ^2.0. This also pulls in DBAL 4 and persistence 4 as
transitive upgrades. The MappedSuperclass mapping and all repositories compile
unchanged; Collection/ArrayCollection usage required no changes (generics only).

One code fix was needed: AppClassTemplatesTest constructed its EntityManager by
passing EventManager to DriverManager::getConnection(), which DBAL 4 no longer
accepts. Move the EventManager to the EntityManager constructor instead, which
is the correct API in ORM 3 / DBAL 4.
@janopae janopae changed the title Update: Bump Doctrine to ORM 3 and collections 2 Update: Bump Doctrine to ORM 3 and collections 2 (Case 212955) Jul 31, 2026
@janopae
janopae merged commit 94b8019 into master Jul 31, 2026
3 checks passed
@janopae
janopae deleted the 212955-doctrine-orm-3-collections-2 branch July 31, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant