Commit 2c034b65 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Add EndtimeRestriction to fetch all records

parent 44331d2d
......@@ -220,7 +220,10 @@ class ImportMembersCommand extends \Symfony\Component\Console\Command\Command
$queryBuilder = $this->getDatabaseConnection()->getQueryBuilderForTable('tx_t3omembership_domain_model_member');
// remove hidden restriction to find former member
$queryBuilder->getRestrictions()->removeByType(\TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction::class);
$queryBuilder
->getRestrictions()
->removeByType(\TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction::class)
->removeByType(\TYPO3\CMS\Core\Database\Query\Restriction\EndTimeRestriction::class);
$statement = $queryBuilder->select('uid')->from('tx_t3omembership_domain_model_member')->where($queryBuilder->expr()
->eq('subscription_no', $queryBuilder->createNamedParameter($subscriptionNo, \PDO::PARAM_INT)))->execute();
......
Markdown is supported
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