Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function findOneByRelativeFilePath(string $relativeFilePath) |
||
21 | { |
||
22 | $queryBuilder = $this->getQueryBuilder(); |
||
23 | $rows = $queryBuilder->select('*') |
||
24 | ->from($this->getTableName()) |
||
25 | ->where( |
||
26 | $queryBuilder->expr()->eq('relative_file_path', $queryBuilder->createNamedParameter($relativeFilePath)) |
||
27 | ) |
||
28 | ->execute() |
||
29 | ->fetchAll(); |
||
30 | |||
31 | return $rows[0] ?? null; |
||
32 | } |
||
33 | |||
44 |