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

Dimanche eat.dimanche at yjj.com
Fri Dec 4 08:28:03 CET 2009


Jochen Rau wrote:
> 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
> 

Hi Jochen,

Thanks for your helping.


Regards,
Dimanche


More information about the TYPO3-project-typo3v4mvc mailing list