Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function getObject(string $table, array $params) |
||
35 | { |
||
36 | $primaryKeys = $this->tdbmService->_getPrimaryKeysFromObjectData($table, $params); |
||
37 | if (empty($primaryKeys)) { |
||
38 | return null; |
||
39 | } |
||
40 | |||
41 | try { |
||
42 | return $this->tdbmService->findObjectByPk($table, $params); |
||
43 | } catch (NoBeanFoundException $e) { |
||
44 | throw new DBException($e->getMessage(), 0, $e); |
||
45 | } |
||
46 | } |
||
47 | |||
61 |