Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function findByFileUid(int $fileUid) |
||
36 | { |
||
37 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($this->getTableName()); |
||
38 | $rows = $queryBuilder->select('*') |
||
39 | ->from($this->getTableName()) |
||
40 | ->where( |
||
41 | $queryBuilder->expr()->eq('file', $fileUid) |
||
42 | ) |
||
43 | ->execute() |
||
44 | ->fetchAll(); |
||
45 | |||
46 | return isset($rows[0]) ? $rows[0] : null; |
||
47 | } |
||
48 | } |
||
49 |