This topic contains 4 replies, has 3 voices, and was last updated by nevoeiro 6 years, 1 month ago.
- Topic
Hi,
I’m adding a custom Product attribute to Product entity (table ‘oro_product’), and when I run the command ‘console oro:platform:update –force’ I get this error on “running full reindexation of website index” step:
12345678910> loading Oro\Bundle\MigrationBundle\Migration\UpdateDataFixturesFixture> running full reindexation of search index> running full reindexation of website index[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]Missing option "type" for "color" fieldoro:migration:data:load [--fixtures-type [FIXTURES-TYPE]] [--dry-run] [--bundles [BUNDLES]] [--exclude [EXCLUDE]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-s|--shell] [--process-isolation] [-e|--env ENV] [--no-debug] [--disabled-listeners DISABLED-LISTENERS] [--current-user CURRENT-USER] [--current-organization CURRENT-ORGANIZATION] [--] <command>The way I’m adding my attribute is like:
1234567891011121314// Add color$table->addColumn('color',Type::STRING,['oro_options' => ['extend' => ['owner' => ExtendScope::OWNER_CUSTOM],'datagrid' => ['is_visible' => DatagridScope::IS_VISIBLE_HIDDEN],'view' => ['is_displayable' => true]],'notnull' => false,'length' => 255,]);And
1234567891011121314151617181920/*** @var array*/private const FIELDS = ['color' => ['searchable' => true,'filterable' => true,'filter_by' => 'fuzzy_search','enabled' => true,'visible' => true]];/*** {@inheritdoc}*/public function load(ObjectManager $manager) : void{$this->makeProductAttributes(self::FIELDS, ExtendScope::OWNER_CUSTOM);}What option type is missing and how to set that option? Thanks.
The forum ‘OroCommerce’ is closed to new topics and replies.