Bug #67272
closed
initializeObject() not called for Extbase Domain Model
Added by Morton Jonuschat almost 9 years ago.
Updated almost 9 years ago.
Sprint Focus:
Stabilization Sprint
Description
Given a controller which does the following in listAction():
$records = $this->modelRepository->findAll();
When accessing the Models in the QueryResult the initializeObject() method is not being called (and __construct() neither, but AFAIK this is by design).
Instantiating a model using the objectManager works as expected, initializeObject() is being called after DI.
$this->objectManager->get(Model::class);
Tested on 7.3-dev@8e13d36
- Target version set to 6.2.13
Bug also occurs on 6.2.13-dev
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39914
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39914
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39914
- Sprint Focus set to Stabilization Sprint
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39914
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/40056
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/40133
This issue is caused by #66473 when using PHP versions where doctrine/intantiator does not unserilize an empty object
- Status changed from Under Review to Closed
Fixed in master for 7, #66473 was reverted for 6.2 so this can be closed.
Also available in: Atom
PDF