Skip to content

Commit

Permalink
[TASK] Update some doctrine stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Oct 27, 2024
1 parent 1d1095c commit d85ba1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use In2code\Lux\Domain\Service\Referrer\Readable;
use In2code\Lux\Utility\DatabaseUtility;
use In2code\Lux\Utility\FrontendUtility;
use PDO;
use TYPO3\CMS\Core\Site\SiteFinder;
use TYPO3\CMS\Core\Utility\GeneralUtility;

Expand Down Expand Up @@ -74,7 +73,7 @@ protected function getExternalGotinToPagevisit(): array
. ' and page=' . (int)$this->filter->getSearchterm()
. ' and crdate > ' . $this->filter->getStartTimeForFilter()->format('U')
. ' and crdate < ' . $this->filter->getEndTimeForFilter()->format('U')
)->fetchAll(PDO::FETCH_ASSOC);
)->fetchAllAssociative();
if ($referrers === false) {
return [];
}
Expand Down
4 changes: 2 additions & 2 deletions Classes/Domain/Repository/PageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Doctrine\DBAL\Exception;
use In2code\Lux\Domain\Model\Page;
use In2code\Lux\Utility\DatabaseUtility;
use PDO;
use TYPO3\CMS\Core\Database\Connection;
use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
use TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction;
use TYPO3\CMS\Core\Utility\GeneralUtility;
Expand Down Expand Up @@ -112,7 +112,7 @@ protected function getChildrenPageIdentifiers(int $pageIdentifier, bool $addHidd
->where(
$queryBuilder->expr()->eq(
'pid',
$queryBuilder->createNamedParameter($pageIdentifier, PDO::PARAM_INT)
$queryBuilder->createNamedParameter($pageIdentifier, Connection::PARAM_INT)
),
$queryBuilder->expr()->eq('sys_language_uid', 0)
);
Expand Down

0 comments on commit d85ba1a

Please sign in to comment.