[TYPO3-mvc] How to get calculated data from a query into an object?

Martin Kutschker masi-no at spam-typo3.org
Thu Feb 18 11:28:02 CET 2010


Franz Koch schrieb:
>>> http://pastebin.com/m2778270a
>>
>> This lacks elegance ;)
>>
>> $dataMapper =
>> Tx_Extbase_Dispatcher::getPersistenceManager()->getBackend()->getDataMapper();
>>
> 
> What, the code in general (I know it's not perfect and I'm always open
> to new things ;)) or the quoted line? Is there a shortcut to the
> dataMapper I haven't found yet?

No, there is no better way :( I thought that I've found another one but I didn't. ExtBase shouldn't
put the framework initialization code in the dispatcher.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list