Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function up() |
||
21 | { |
||
22 | /* @var \Anomaly\Streams\Platform\Field\Contract\FieldInterface $field */ |
||
23 | $field = $this->fields()->findBySlugAndNamespace('user', 'preferences'); |
||
24 | |||
25 | $field->config = [ |
||
26 | 'mode' => 'lookup', |
||
27 | 'related' => 'Anomaly\UsersModule\User\UserModel', |
||
28 | ]; |
||
29 | |||
30 | $field->save(); |
||
31 | } |
||
32 | |||
51 |
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.