[TYPO3-mvc] initializeObject() pointless?

Martin Kutschker masi-no at spam-typo3.org
Sat Feb 6 21:28:25 CET 2010


Hi!

If you construct a new object or unserialize an object this method is called by default.
Unserializing also happens when the object is reconstructed from DB. Unfortunately this happens
*before* the properties are thawed. This means that you can only do anything unrelated to the actual
values of properties.

But why would I need that? What I really need is a reconstituteObject() method called by after thawing.

Why do I need this? Because the data mapper maps everything automatically and I cannot use objects
as properties unless they are persisted domain objects. Which is in my case not true as I use custom
value objects for TCA select items. That is I want to. But I cannot since ExtBase won't let me
create the objects and won't create them for me :(

Masi


More information about the TYPO3-project-typo3v4mvc mailing list