Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | protected function initMediaRelations() |
||
14 | { |
||
15 | $this->morphMany( |
||
|
|||
16 | 'Media', |
||
17 | ['class' => get_class(MediaModels::records()), 'morphTypeField' => 'model', 'fk' => 'model_id'] |
||
18 | ); |
||
19 | |||
20 | $this->morphMany( |
||
21 | 'MediaProperties', |
||
22 | ['class' => get_class(MediaModels::properties()), 'morphTypeField' => 'model', 'fk' => 'model_id'] |
||
23 | ); |
||
26 |