[TYPO3-mvc] Fetching FEUsers related to FEUserGroup

Franz Koch typo3.RemoveForMessage at elements-net.de
Fri Dec 10 11:54:49 CET 2010


Hey Alex,

> I fix'd it by adding the following to the Typo3DbBackend.php line 546
>
> $statement .= ' OR ' . $tableName . '.' . $operand1->getPropertyName() .
> ' LIKE \'' . $this->getPlainValue($operand2) . '\')';
>
> This checks if the operand contains a single value.
> I don't know if thats the best way to solve it right now but it works
> fine for me.

IIRC somebody else stumbled over this already, so there's probably 
already a ticket and bugfix (didn't check it though). Would you be so 
kind and see if there's already a ticket for it and if not create one?

If patching extbase is ok for you, then your fix is of course fine. If 
you somehow prefer not to patch extbase, you could of also create a 
workaround in your repository then. Something like:

$query = $this->createQuery();
retrun $query->matching(
	$query->logicalOr(
		$query->contains('usergroup', $userGroupObject),
		$query->equals('usergroup', $userGroupObject)
	)
)->execute();

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list