Skip to content
Snippets Groups Projects
Commit 6bb5af7e authored by Alexander Schnitzler's avatar Alexander Schnitzler Committed by Christian Kuhn
Browse files

[TASK] Let DataMapper::createEmptyObject() use doctrine/instantiator

During the removal of the ObjectManager (Extbase), the way the
DataMapper instantiates entities when thawing objects, i.e.
fetching a database row and transform it back into an entity
object, changed. doctrine/instantiator had been used to create
empty objects, i.e. creating objects without calling their
constructor. Now, entities with constructors cannot be thawed
any longer. To bring back this way of working (which existed
for as long as Extbase itself does), doctrine/instantiator is
brought back and used.

> composer req doctrine/instantiator:^2.0

Releases: main
Resolves: #100207
Related: #96208
Change-Id: Iabaddb2a027ea208c0eee75c26ea53f36e7e3285
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78051


Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@b13.com>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarDaniel Goerz <daniel.goerz@b13.com>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
parent 2ac40774
Showing with 336 additions and 96 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment