This topic contains 7 replies, has 3 voices, and was last updated by peeush 4 years, 8 months ago.
- Topic
Hi guys
I need to add a new column in oro entity (PaymentTerm) and to write the following migration.
1234567891011121314151617181920212223public function up(Schema $schema, QueryBag $queries){$table = $schema->getTable('oro_payment_term');if (!$table->hasColumn('erp_formap')) {$table->addColumn('erp_formap','string',['label' => 'summa.erp_formap.label.label','oro_options' => ['extend' => ['owner' => ExtendScope::OWNER_CUSTOM, 'origin' => ExtendScope::ORIGIN_CUSTOM, 'is_extend' => true],'datagrid' => ['is_visible' => DatagridScope::IS_VISIBLE_TRUE],'merge' => ['display' => true],'form' => ['is_enabled' => true,'type' => TextType::class]]]);}}Run the migration and add the new column.
1234567mysql> SELECT * FROM makropaper_db.oro_payment_term;+----+-------------------------+-----------------+------------+| id | label | serialized_data | erp_formap |+----+-------------------------+-----------------+------------+| 1 | Habitual | Tjs= | NULL || 2 | Contrareembolso | Tjs= | NULL |+----+-------------------------+-----------------+------------+But…
In the edit view mode, I can’t see the column that I just added. Also doesn’t add to the form of the entity on wherever of the views: create/edit/show.
I’m using the oro_options for this purpose, but I don’t know if I’m using it correctly or not, because I don’t know what are all the possible options for oro_options settings and I didn’t find documentation of that.
Could you help me guys in this?
Thanks!
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.