[TYPO3-mvc] Repository $query->equals('serie', '1,2')

Jonas Götze jonnsn at gmail.com
Sat Jun 5 19:40:43 CEST 2010


Am 05.06.2010 19:05, schrieb Christian Schwan - Dimme GmbH:
>   He guys
>
> Im trying to get return:
>
> $query->equals('serie', '1,2')
>
> But its not working
>
> How does I do like: serie IN (1,2) with ExtBase?
>
> christian
>
> Ausgehende eMail ist virenfrei.
> Von AVG Free SB uberpruft - www.avg.de
> Version: 9.0.829 / Virendatenbank: 271.1.1/2919 - Ausgabedatum: 06/05/10
> 08:25:00
>
Hi Christian,

Take a look at the Cheatsheat from Typofaktum [1].
There you can find several constraints and also the
$query->in
constraint.

$query->logicalAnd($constraint1, $constraint2);
$query->logicalOr($constraint1, $constraint2);
$query->logicalNot($constraint);
$query->withUid($uid);
$query->equals($propertyName, $operand, $caseSensitive);
$query->in($propertyName, $operand);
$query->contains($propertyName, $operand);
$query->like($propertyName, $operand);
$query->lessThan($propertyName, $operand);
$query->lessThanOrEqual($propertyName, $operand);
$query->greaterThan($propertyName, $operand);
$query->greaterThanOrEqual($propertyName, $operand);

HTH

Regards
Jonas
[1] 
http://www.typofaktum.de/fileadmin/slides/ExtbaseFluidCheatSheetTypofaktum.pdf


More information about the TYPO3-project-typo3v4mvc mailing list