Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
7 | public function up() |
||
8 | { |
||
9 | $this->dropForeignKey( |
||
10 | 'fk_screen_template_template_background1', |
||
11 | 'screen_template' |
||
12 | ); |
||
13 | |||
14 | $this->addForeignKey( |
||
15 | 'fk_screen_template_template_background1', |
||
16 | 'screen_template', |
||
17 | 'background_id', |
||
18 | 'template_background', |
||
19 | 'id', |
||
20 | 'SET NULL', |
||
21 | 'SET NULL' |
||
22 | ); |
||
23 | } |
||
24 | |||
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.