[TYPO3-mvc] Adding new constraints to existing constraints in widget query
Torsten Schrade
schradt at uni-mainz.de
Sat Aug 2 12:05:04 CEST 2014
Hi Helmut,
> You can get the current constraint(s) with:
>
> $constraint = $query->getConstraint();
>
> And can add further constrainst with:
>
> $newConstraints[] = $constraint;
> $newConstraints[] = $query->like('foo', 'bar');
> $query->matching($query->locicalAnd($newConstraints));
Perfect, that works great!
Thanks a lot and have a nice weekend,
Torsten
More information about the TYPO3-project-typo3v4mvc
mailing list