[TYPO3-mvc] problem with constructor method not called?

Martin Kutschker masi-no at spam-typo3.org
Fri Jan 8 11:53:53 CET 2010


Franz Koch schrieb:
>> Try to put your code in the initializeObject() method which is also
>> called at wakeup (see abstract
>> domain classes).
> 
> Thanks, I'll give it a try. But I wonder then, why it's also done in the
> constructors in the blogExample as it won't have any affect there, too.

I'm confused about that too. The constructor will BTW be called in the blog example when a "new
blog" form is shown. In this case a new PHP object is created with "new" without any further magic.

Maybe you don't have to instantiate the objects storages when fetching an object from the repository
because of the data mapper. I haven't looked yet, but it *could* be that there the properties are
set as well.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list