[TYPO3-mvc] RFC #10487: MM_match_fields not respected on UNIONs
Franz Koch
typo3.RemoveForMessage at elements-net.de
Fri Jan 21 16:44:57 CET 2011
Hey there,
this is a SVN patch request.
-----------------------------------------------------------------------
*Type:* Bugfix
-----------------------------------------------------------------------
*Bugtracker:* http://forge.typo3.org/issues/10487
-----------------------------------------------------------------------
*Branches:* trunk
-----------------------------------------------------------------------
*Problem:*
Extbase currently doesn't respect MM_match_fields for UNIONs. Those are
f.e. created by queries refering to properties of childObjects in their
constraints.
Example:
$query = $this->createQuery();
$query->matching(
$query->equals('childObject.propertyName', 'someValue');
)->execute();
As soon as the relation to the childObject depends on MM_match_fields
you currently will get wrong results.
-----------------------------------------------------------------------
*Solution:*
Simply add the MM_match_fields to the UNION WHERE statement.
-----------------------------------------------------------------------
PS: still looking for a nice RFC template and experimenting ;)
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list