Bug #67272
closedinitializeObject() not called for Extbase Domain Model
100%
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
Updated by Morton Jonuschat over 9 years ago
- Target version set to 6.2.13
Bug also occurs on 6.2.13-dev
Updated by Gerrit Code Review over 9 years ago
- 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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Xavier Perseguers over 9 years ago
- Sprint Focus set to Stabilization Sprint
Updated by Gerrit Code Review over 9 years ago
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
Updated by Morton Jonuschat over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ec4f49f69fe8478e9c67ae56d9108a46fce9693e.
Updated by Gerrit Code Review over 9 years ago
- 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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Helmut Hummel over 9 years ago
This issue is caused by #66473 when using PHP versions where doctrine/intantiator does not unserilize an empty object
Updated by Alexander Opitz over 9 years ago
- Status changed from Under Review to Closed
Fixed in master for 7, #66473 was reverted for 6.2 so this can be closed.