i'm using Rockmigrations the first time.
I copied field settings (Rockmigration Code) from an Processwire site in the migration.php of a new Processwire environment. It works fine except for one options field:
it throws
Fatal error: Uncaught Error: Class "ProcessWire\SelectableOptionManager" not found in /var/www/html/app/site/modules/RockMigrations/RockMigrations.module.php on line 4144
here is the code
$rm->createField('country', 'text', [
'collapsed' => 0,
'columnWidth' => 100,
'defaultValue' => '',
'flags' => 0,
'icon' => 'flag-o',
'initValue' => '',
'inputfieldClass' => 'InputfieldSelect',
'label' => 'Country',
'options' => [
65 => 'Germany',
120 => 'Namibia',
1 => 'Afghanistan',
2 => 'Albania',
3 => 'Algeria',
4 => 'Andorra',
5 => 'Angola',
6 => 'Antigua and Barbuda',
7 => 'Argentina',
8 => 'Armenia',
9 => 'Australia',
10 => 'Austria',
...etc...
],
'required' => '',
'requiredIf' => '',
'showIf' => '',
'tags' => 'address',
'themeBorder' => '',
'themeColor' => '',
'themeInputSize' => '',
'themeInputWidth' => '',
'themeOffset' => '',
'type' => 'FieldtypeOptions',
]);
I do not understand what the problem is with the options field
Thanx for ideas and help
🐵