Remove queryBuilder restrictions

This command will disable all restrictions and force the queryBuilder to return all items including the deleted ones. A nice example would be the recycler, where you can restore deleted items.

$queryBuilder
->getRestrictions()
->removeAll();

Be the first to comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.