Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function findOneBy(array $criteria, array $orderBy = null) |
||
10 | { |
||
11 | if (!empty($criteria['id'])) { |
||
12 | // cast client id to be an integer to avoid postgres error: |
||
13 | // "invalid input syntax for integer" |
||
14 | $criteria['id'] = (int) $criteria['id']; |
||
15 | } |
||
16 | |||
17 | return parent::findOneBy($criteria, $orderBy); |
||
18 | } |
||
20 |