ssossossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

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 3 years, 6 months ago.

  • Creator
    Topic
  • #22095

    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
  • #22096

    Dima Soroka
    Keymaster

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

    #22097

    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.

    #22098

    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 🙁

    #22099

    ZOTTIG
    Participant

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

    #22100

    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.

    #22101

    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)

You must be logged in to reply to this topic.