This topic contains 8 replies, has 2 voices, and was last updated by jaime.du 6 years, 1 month ago.
- Topic
Hi guys,
I’m trying to remove the field ‘Fax’ from ‘sales_lead’ by migrations script:
12345678class RemoveFaxFromContact implements Migration{public function up(Schema $schema, QueryBag $queries){$table = $schema->getTable('orocrm_contact');$table->dropColumn('fax');}}Then run php app/console oro:migration:load –force –show-queries. I thought it will do the same as I add a new column. But seems like it doesn’t change the entity config because I get error Unknown column ‘o0_.fax’ in ‘field list’. It still tries to retrieve this column.
Right now all I can do is extending the contact bundle and overwrite the view and update page. But I also need to disable it in search and API json schema. Any instruction how to remove a column in entity completely?
The forum ‘OroCRM’ is closed to new topics and replies.