Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | protected function initRelationsMedia() |
||
22 | { |
||
23 | $this->morphMany( |
||
|
|||
24 | 'Media', |
||
25 | ['class' => get_class(MediaModels::records()), 'morphTypeField' => 'model', 'fk' => 'model_id'] |
||
26 | ); |
||
27 | |||
28 | $this->morphMany( |
||
29 | 'MediaProperties', |
||
30 | ['class' => get_class(MediaModels::properties()), 'morphTypeField' => 'model', 'fk' => 'model_id'] |
||
31 | ); |
||
34 |