Skip to content
Snippets Groups Projects
Commit d89063c0 authored by Helmut Hummel's avatar Helmut Hummel Committed by Benni Mack
Browse files

[FEATURE] Add restriction container that limits applicable tables

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']
             );

Resolves: #87776
Releases: master
Change-Id: I7fc7108ccac93d50cfab6fa8a74809f1dfe2bd89
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60781


Tested-by: default avatarManuel Selbach <manuel_selbach@yahoo.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarManuel Selbach <manuel_selbach@yahoo.de>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 44ce57e7
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment