My extbase model "show", has got a lot of records "production". A Production can be "ended" or "current". It's declared in the Model of productions.
In a "Show"-Show I want to list the current productions and the ended ones. Currently it's only possible to list it with <f:for each="{productions}"...>
and a condition.
But I want to do it like in this way <f:for each="{currentProductions}"...
or <f:for each="{endedProductions}"...
So I wrote a query for my repository of productions:
public function aktuelleProduktionen(Musicalplanet\MpDatenbank\Domain\Model\Produktionen $produktionen) {
$query = $this->createQuery();
$query->matching(
$query->logicalOr(
$query->equals('openend', '1'),
$query->equals('abgelaufen', '0')
)
);
return $query->execute();
}
but now I really don't know how to make it working. For me it's not clear where to add it, to use it like I need it.
getProduktFromKorb
;) and also it will be easier for us to help you – biesior