| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 25 | protected function setKeysForSaveQuery($query): Builder |
||
| 26 | { |
||
| 27 | $keys = $this->getKeyName(); |
||
|
|
|||
| 28 | if (! is_array($keys)) { |
||
| 29 | return parent::setKeysForSaveQuery($query); |
||
| 30 | } |
||
| 31 | |||
| 32 | foreach ($keys as $keyName) { |
||
| 33 | $query->where($keyName, '=', $this->getKeyForSaveQuery($keyName)); |
||
| 34 | } |
||
| 35 | |||
| 36 | return $query; |
||
| 37 | } |
||
| 58 |