Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function safeUp() |
||
35 | { |
||
36 | $this->createTable('{{%oauthClientUser}}', [ |
||
37 | 'clientId' => $this->string(255), |
||
38 | 'userId' => $this->string(255), |
||
39 | 'PRIMARY KEY(clientId, userId)', |
||
40 | ], 'ENGINE=InnoDB DEFAULT CHARSET=utf8'); |
||
41 | $this->addForeignKey( |
||
42 | 'client_user_client_id_fk', |
||
43 | '{{%oauthClientUser}}', |
||
44 | 'clientId', |
||
45 | '{{%oauthClients}}', |
||
46 | 'id', |
||
47 | 'CASCADE', |
||
48 | 'CASCADE' |
||
49 | ); |
||
50 | return true; |
||
51 | } |
||
52 | |||
64 |
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.