[TYPO3-dev] Why isn't the constructor called for the domain model?

Olle Haerstedt o.haerstedt at bitmotion.de
Mon Oct 13 16:09:04 CEST 2014


Hi!

Why isn't the __constructor called for the domain model when doing a simple
showAction? I need to initialize an object storage. Even if I `die` in the constructor,
it won't die. I know I'm in the right model, cause when I `die` in a setter, execution
stops as expected. Same thing when cache is emptied.

A guy on IRC mentioned that Extbase uses `unserialize` to create objects. Is this
related?

Regards
Olle



More information about the TYPO3-dev mailing list