[TYPO3-mvc] Search by using logicalAnd(constraint1, constraint2)

Jochen Rau jochen.rau at typoplanet.de
Fri Dec 4 08:02:02 CET 2009


Hi.

schrieb Dimanche:
> public function searchResult($request) {
> $query = $this->createQuery();
> $query->logicalAnd($query->equals('user_type',$request['user_type']),$query->equals('district',$request['district']));

$query->matching($query->logicalAnd($query->equals('user_type',$request['user_type']),$query->equals('district',$request['district'])));
return $query->execute();

Regards
Jochen

-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list