[TYPO3-mvc] need help on implementing MM_match_fields in persistence layer

Robert Böttner lists at boettner.it
Thu Jan 7 15:48:22 CET 2010


Hi Franz,

> Thanks for the hints. I'm already struggling with Tx_Extbase_Persistence_Mapper_DataMapper::getPreparedQuery() and see what happens as soon as I found out how to concatenate multiple statements via logicalAnd using the queryObject.


$query->matching(
	$query->logicalOr(
		$query->logicalOr(
			$query->like($fields[0], $queryParams['query']), $query->like($fields[1], $queryParams['query'])
		),
		$query->like($fields[2], $queryParams['query'])
	)
);

Does that help?

Robert.


More information about the TYPO3-project-typo3v4mvc mailing list