Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function findByUid(int $uid) |
||
33 | { |
||
34 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($this->getTableName()); |
||
35 | $rows = $queryBuilder->select('*') |
||
36 | ->from($this->getTableName()) |
||
37 | ->where( |
||
38 | $queryBuilder->expr()->eq('uid', $uid) |
||
39 | ) |
||
40 | ->execute() |
||
41 | ->fetchAll(); |
||
42 | return isset($rows[0]) ? $rows[0] : null; |
||
43 | } |
||
44 | |||
62 |