Review main Merged

60781[FEATURE] Add restriction container that limits applicable tables

Helmut Hummel CR +2 V +2 Hard +393 −0 updated 04/17/20, 18:23

Commit message

It is now possible to limit restrictions to a given set of table aliases
by using the introduced
\TYPO3\CMS\Core\Database\Query\Restriction\LimitToTablesRestrictionContainer.

Example:

$queryBuilder->getRestrictions()
    ->removeByType(HiddenRestriction::class)
    ->add(
        GeneralUtility::makeInstance(LimitToTablesRestrictionContainer::class)
            ->addForTables(
                GeneralUtility::makeInstance(HiddenRestriction::class),
                ['sys_language']
             );

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 5