OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions Add field to No Extend

This topic contains 6 replies, has 3 voices, and was last updated by  Alexandr Smaga 9 years, 11 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #24713

    ZOTTIG
    Participant

    I need to add a field to orocrm_magento_order, but it “IS EXTEND = NO”.
    How can I do this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #24714

    Dima Soroka
    Keymaster

    Thanks for this request, we’ll convert all Magento related entities into extended ones in the next release.

    #24715

    ZOTTIG
    Participant

    But I need not standard field Magenta. How can I add a field?

    I tried to make migration

    oro:migration:load

    But after schema:update , all my fields in the database are lost.

    And I can not display my field on the screen.

    #24716

    Alexandr Smaga
    Participant

    Hello.

    Schema update command makes changes based on entity metadata. So you have to add it via migration script and also to add it to metadata. It could be done via event listener, but doctrine hasn’t clean way how to override entities :(

    #24717

    ZOTTIG
    Participant

    Hello!
    How can I add a field? How to do it right?

    #24718

    Dima Soroka
    Keymaster

    As for now you can consider inheritance or additional entity with 1:1 relation. OroExtendedEntity was implemented to solve this issue and we’ll apply it to Magento related entities.

    #24719

    Alexandr Smaga
    Participant

    Hello. This improvement will be included in next release, so you will be able to add fields via config/UI.

    Thanks for your interest.

Viewing 6 replies - 1 through 6 (of 6 total)

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

Back to top