mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-24 20:56:12 +01:00
parent
4f6e145326
commit
91e2a2d16f
1 changed files with 3 additions and 3 deletions
|
@ -53,10 +53,10 @@ final class CreateTestDataCommand extends Command
|
||||||
|
|
||||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||||
{
|
{
|
||||||
/** @var int $pageUid */
|
$pageUid = (int)$input->getArgument('pageUid') ?? 0;
|
||||||
$pageUid = $input->getArgument('pageUid') ?? 0;
|
\assert(\is_int($pageUid));
|
||||||
/** @var bool $deleteDataBefore */
|
|
||||||
$deleteDataBefore = $input->getOption('delete-data-before') ?? false;
|
$deleteDataBefore = $input->getOption('delete-data-before') ?? false;
|
||||||
|
\assert(\is_bool($deleteDataBefore));
|
||||||
$table = 'tx_tea_domain_model_tea';
|
$table = 'tx_tea_domain_model_tea';
|
||||||
$connectionForTable = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable($table);
|
$connectionForTable = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable($table);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue