Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function down() |
||
26 | { |
||
27 | $this->dropForeignKey( |
||
28 | 'fk_screen_template_template_background1', |
||
29 | 'screen_template' |
||
30 | ); |
||
31 | |||
32 | $this->addForeignKey( |
||
33 | 'fk_screen_template_template_background1', |
||
34 | 'screen_template', |
||
35 | 'background_id', |
||
36 | 'template_background', |
||
37 | 'id', |
||
38 | 'CASCADE', |
||
39 | 'CASCADE' |
||
40 | ); |
||
41 | } |
||
42 | } |
||
43 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.