OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Extend entities code is not working

This topic contains 2 replies, has 2 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 4 weeks, 1 day ago.

The forum will run in the read-only mode starting from March 1. Please head to StackOverflow for support.

  • Creator
    Topic
  • #41108

    saikatcdac
    Participant

    I am trying to add a text field into contact bundle from my custom bundle by following this tutorial
    https://doc.oroinc.com/backend/entities/extend-entities/index#create-extended-entities
    But no effect is showing neither in database nor in UI my code is in below.

    Then i am running this command in terminal but the field is not creating in database and also not in UI

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #41109

    saikatcdac
    Participant

    Please ignore this line. I have forgot to remove this line before posting

    in // src/AppBundle/Migrations/Schema/v1_0/AddPartnerSinceToContact.php

    #41181
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi,

    Migration is the only thing that you need, please remove custom Contact and ExtendContact classes, as Contact entity already exists in a core and custom property with accessors is generated automatically in the cache. After reverting the changes it’s required to restore the database from a backup that is done before changes or fully reinstall an application and re-run the migration with oro:platform:update command.

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

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No