[TYPO3-dev] How to update tt_news_cat_mm using TCE

Dmitry Dulepov [typo3] dmitry at typo3.org
Wed Dec 5 17:20:06 CET 2007


Hi!

Elmar Hinz wrote:
> I try to update the relations between tt_news and tt_news_cat using the TCE. 
> 
>   $this->tce->start($data, array());
>   $this->tce->process_datamap();
> 
> tt_news_cat_mm is a typical T3 MM-Table, but somehow I can't figure out, how
> to apply TCE for this standard case. It's not coverd by the Core API.

TCEmain does it automatically. You put table_uid (for example, pages_5) in the group field, which has MM relations and TCEmain converts it appropriately. If you need to load it back, you have to use t3lib_loaddbgroup.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"




More information about the TYPO3-dev mailing list