Skip to content

Commit

Permalink
[TASK] unused method in database
Browse files Browse the repository at this point in the history
  • Loading branch information
achimfritz committed Jan 19, 2025
1 parent 58a0f68 commit 7b1dfb0
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions Classes/Domain/Factory/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,27 +161,4 @@ public function fetchOverlayRecords(array $records, int $language): array
->fetchAllAssociative();
return $rows;
}

public function fetchOneOverlayRecord(int $uid, int $language): ?array
{
$queryBuilder = $this->getQueryBuilder();
$record = $queryBuilder->select('*')
->from('tt_content')
->where(
$queryBuilder->expr()->eq(
'l18n_parent',
$queryBuilder->createNamedParameter($uid, Connection::PARAM_INT)
),
$queryBuilder->expr()->eq(
'sys_language_uid',
$queryBuilder->createNamedParameter($language, Connection::PARAM_INT)
)
)
->executeQuery()
->fetchAssociative();
if ($record === false) {
return null;
}
return $record;
}
}

0 comments on commit 7b1dfb0

Please sign in to comment.