Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function imageExists($imageName, $productId, $ean) |
||
32 | { |
||
33 | $connection = $this->getConnection(); |
||
34 | $query = $connection->select() |
||
35 | ->from(['s' => $this->getMainTable()], ['s.ean']) |
||
36 | ->where('s.image = \''.$imageName.'\' AND s.product_id = '.$productId.' AND s.ean=\''.$ean.'\''); |
||
37 | $eans = $connection->fetchAll($query); |
||
38 | return $eans; |
||
39 | } |
||
40 | |||
55 |