[TYPO3-dev] MM-Problem
Steffen Kamper
info at sk-typo3.de
Tue Jun 9 13:22:21 CEST 2009
Hi,
don't know to which issue you answer. The MM_match_fields are used all
the time the same so this field can be used for special conditions.
According to your BT entry eg can be used for additional where clause.
vg Steffen
Nikolas Hagelstein schrieb:
> Steffen,
>
> i just read through t3lib_loaddbgroup.php (4.2.6). And came across the
> following:
>
> t3lib_loaddbgroup.php:
> 00123 $this->MM_match_fields = is_array($conf['MM_match_fields']) ?
> $conf['MM_match_fields'] : array();
>
> And
> t3lib_loaddbgroup.php:
> 00304 foreach ($this->MM_match_fields as $field => $value) {
> 00305 $additionalWhere.= ' AND
> '.$field.'='.$GLOBALS['TYPO3_DB']->fullQuoteStr($value, $tableName);
> 00306 }
>
>
> MM_macht_fields are added to the delete query for the relation.
> I would try to set it to tablename = bar (or whatever fit your needs).
> This should result in something like:
> DELETE FROM mm_foo where uid_local=y AND .... (all entries of
> MM_match_fields).
>
> I ain't got a testenvironment arrount atm so could you please report
> back if it works?.
>
> Cheers,
>
> Nikolas
>
>
More information about the TYPO3-dev
mailing list