[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:Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Daniel Goerz <daniel.goerz@b13.com> Tested-by:
Oliver Klee <typo3-coding@oliverklee.de> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Daniel Goerz <daniel.goerz@b13.com> Reviewed-by:
Oliver Klee <typo3-coding@oliverklee.de>
Showing
- composer.json 1 addition, 0 deletionscomposer.json
- composer.lock 71 additions, 71 deletionscomposer.lock
- typo3/sysext/core/Classes/Utility/GeneralUtility.php 3 additions, 1 deletiontypo3/sysext/core/Classes/Utility/GeneralUtility.php
- typo3/sysext/core/Documentation/Changelog/12.4/Important-100207-LetDataMappercreateEmptyObjectUseDoctrineinstantiator.rst 173 additions, 0 deletions...LetDataMappercreateEmptyObjectUseDoctrineinstantiator.rst
- typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php 20 additions, 24 deletions...extbase/Classes/Persistence/Generic/Mapper/DataMapper.php
- typo3/sysext/extbase/Configuration/Services.yaml 3 additions, 0 deletionstypo3/sysext/extbase/Configuration/Services.yaml
- typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/DataMapperTest.php 27 additions, 0 deletions.../Functional/Persistence/Generic/Mapper/DataMapperTest.php
- typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/Fixtures/HydrationFixtureEntity.php 35 additions, 0 deletions...stence/Generic/Mapper/Fixtures/HydrationFixtureEntity.php
- typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php 2 additions, 0 deletions.../Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php
- typo3/sysext/extbase/composer.json 1 addition, 0 deletionstypo3/sysext/extbase/composer.json
Please register or sign in to comment