| @@ 67-77 (lines=11) @@ | ||
| 64 | /** |
|
| 65 | * @return array |
|
| 66 | */ |
|
| 67 | public function behaviors() |
|
| 68 | { |
|
| 69 | return [ |
|
| 70 | [ |
|
| 71 | 'class' => 'hipanel\behaviors\File', |
|
| 72 | 'attribute' => 'file', |
|
| 73 | 'targetAttribute' => 'file_ids', |
|
| 74 | 'scenarios' => ['create', 'answer'], |
|
| 75 | ], |
|
| 76 | ]; |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @return array |
|
| @@ 52-62 (lines=11) @@ | ||
| 49 | /** |
|
| 50 | * @return array |
|
| 51 | */ |
|
| 52 | public function behaviors() |
|
| 53 | { |
|
| 54 | return [ |
|
| 55 | [ |
|
| 56 | 'class' => File::class, |
|
| 57 | 'attribute' => 'file', |
|
| 58 | 'targetAttribute' => 'file_ids', |
|
| 59 | 'scenarios' => ['create', 'answer'], |
|
| 60 | ], |
|
| 61 | ]; |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * @return array |
|