I want to select only $limit records from the table with the category $cat.
foreach($cats as $cat) {
$query = $this->createQuery();
$query->matching($query->equals('type', $cat));
$query->setLimit((int)$limit);
$result[] = $query->execute();
}
Is it possible to combine the query result so one query result?
I think your query is something like ,
Here $cats is an array of categories like,
Then the extabse query will be,
In the above query in() checks if a single-valued property exists in a multi-value operand.
For more details refer : http://docs.typo3.org/typo3cms/ExtbaseFluidBook/6-Persistence/3-implement-individual-database-queries.html