#67272initializeObject() not called for Extbase Domain Model
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
Reviews 5
- TYPO3_6-2 40056[BUGFIX] Call initializeObject() after instantiating empty objects
- main 40213[FOLLOWUP][TASK] Document DI happening before initializeObject()
- main 40195[TASK] Document DI happening before initializeObject()
- main 40161[TASK] Improve extbase object creation tests
- main 39914[BUGFIX] Call initializeObject() after instantiating empty objects