[TYPO3-dev] t3lib_TCEmain::process_datamap() annoyance

"Marc Wöhlken [quadracom]" woehlken at quadracom.de
Thu Feb 8 14:27:24 CET 2007


Hi!
There is a hook named "processDatamap_afterDatabaseOperations"
implemented in t3lib_TCEmain which implies (at least to me) that it will
be executed after all datbase operations on a content element are finished.

This is not true and gave me some awful headache when working with
mm-relations.

The hook is executed before(!) mm-relations are saved so database
storage is not fully completed.

<!-- Code Start -->
function process_datamap() {
	...
	foreach($orderOfTables as $table) {
	...
	// Hook: processDatamap_afterDatabaseOperations
	foreach($hookObjectsArr as $hookObj)	{
	if(method_exists($hookObj,'processDatamap_afterDatabaseOperations')) {
		$hookObj->processDatamap_afterDatabaseOperations($status, $table, $id,
$fieldArray, $this);
	}
	...
		}
	}
	$this->dbAnalysisStoreExec(); // This saves MM-Rel.
	$this->removeRegisteredFiles();
}
<!-- Code end -->

It would be good to have a (additionaly?!) hook that will be executed
after even mm-relations were saved.

Regards
	Marc
-- 
...........................................................
Marc Wöhlken

Quadracom - Proffe & Wöhlken

Fedelhören 45a                 WWW: http://www.quadracom.de
D-28203 Bremen                E-Mail: woehlken at quadracom.de
______________             PGP-Key: http://pgp.quadracom.de




More information about the TYPO3-dev mailing list