| Conditions | 4 |
| Paths | 4 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 48 | public function afterSave($insert, $changedAttributes) |
||
| 49 | { |
||
| 50 | parent::afterSave($insert, $changedAttributes); |
||
| 51 | |||
| 52 | if ($this->autoEncode) |
||
| 53 | foreach ($this->encodeAttributes as $attribute) |
||
| 54 | if ($this->hasAttribute($attribute)) |
||
| 55 | $this->$attribute = json_decode($this->$attribute, true); |
||
| 56 | } |
||
| 57 | |||
| 70 | } |