Issue Bug Closed

#67272initializeObject() not called for Extbase Domain Model

Morton Jonuschat 06/03/15, 11:07 updated 06/10/15, 12:11

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