1 | <?php |
||
12 | class AnomalyModulePreferencesCreatePreferencesFields extends Migration |
||
|
|||
13 | { |
||
14 | |||
15 | /** |
||
16 | * The addon fields. |
||
17 | * |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $fields = [ |
||
21 | 'user' => [ |
||
22 | 'type' => 'anomaly.field_type.relationship', |
||
23 | 'config' => [ |
||
24 | 'mode' => 'lookup', |
||
25 | 'related' => 'Anomaly\UsersModule\User\UserModel', |
||
26 | ], |
||
27 | ], |
||
28 | 'key' => 'anomaly.field_type.text', |
||
29 | 'value' => 'anomaly.field_type.textarea', |
||
30 | ]; |
||
31 | |||
32 | } |
||
33 |
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.