Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class Account extends \app\models\Account |
||
15 | { |
||
16 | public function behaviors() |
||
17 | { |
||
18 | return ArrayHelper::merge(parent::behaviors(), [ |
||
19 | 'type' => [ |
||
20 | 'class' => AttributeTypecastBehavior::class, |
||
21 | 'typecastAfterValidate' => false, |
||
22 | 'typecastAfterSave' => true, |
||
23 | 'typecastAfterFind' => true, |
||
24 | ], |
||
25 | ]); |
||
26 | } |
||
27 | |||
28 | public function fields() |
||
45 | ]; |
||
46 | } |
||
47 | } |