| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function orIgnore(): self |
||
| 29 | { |
||
| 30 | $engine = $this->table->getDatabase()->getConnection()->getDriverName(); |
||
| 31 | |||
| 32 | switch ($engine) { |
||
| 33 | case 'mysql': |
||
| 34 | $this->query->setFlag('IGNORE'); |
||
| 35 | break; |
||
| 36 | case 'sqlite': |
||
| 37 | $this->query->setFlag('OR IGNORE'); |
||
| 38 | break; |
||
| 39 | } |
||
| 40 | |||
| 41 | return $this; |
||
| 42 | } |
||
| 43 | |||
| 53 |