Bug #67272

initializeObject() not called for Extbase Domain Model

Added by Morton Jonuschat about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2015-06-03
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
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


Related issues

Related to TYPO3 Core - Bug #67274: initializeObject() called before dependency injectionClosed2015-06-03

Actions
Related to TYPO3 Core - Bug #66473: Cannot create object implementing Serializable on PHP 5.6ClosedMathias Brodala2015-04-17

Actions
Related to TYPO3 Core - Bug #67407: Improve object creation testsClosed2015-06-11

Actions
Related to TYPO3 Core - Bug #67408: Nail down php 5.6 instantiation issues in testsClosed2015-06-11

Actions

Also available in: Atom PDF