Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | protected function setKeysForSaveQuery($query) |
||
14 | { |
||
15 | $keys = $this->getKeyName(); |
||
|
|||
16 | if(!is_array($keys)){ |
||
17 | return parent::setKeysForSaveQuery($query); |
||
18 | } |
||
19 | |||
20 | foreach($keys as $keyName){ |
||
21 | $query->where($keyName, '=', $this->getKeyForSaveQuery($keyName)); |
||
22 | } |
||
23 | |||
24 | return $query; |
||
25 | } |
||
43 | } |