Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

This topic contains 2 replies, has 2 voices, and was last updated by Damien LE TROHER Damien LE TROHER 4 years, 7 months ago.

  • Creator
    Topic
  • #34813
    Damien LE TROHER
    Damien LE TROHER
    Participant

    Hi all,

    We just tried to extend an entity from OroCRM.

    We used the following code in entity_extend.ymlOroCRM\Bundle\ContactBundle\Entity\Contact:
    fields:
    test_synolia1:
    owner: 'Custom' #default 'System'
    type: string

    After, we just use the command :php app/console oro:entity-extend:init
    and we get this error :

    Note that we can reproduce this error in a blank OroCRM install, with the same command.

    We found that the exception came from “Oro\Bundle\EntityExtendBundle\Command\InitCommand”, line 134.

    We just removed this “throw” and all works fine now.

    Can you explain it to us ?

    Thank you.


    Damien LE TROHER
    SYNOLIA – Division Ecommerce

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

    Alexandr Smaga
    Participant

    Hello,

    AFAIK oro:entity-extend:init should be run once during installation,

    should be used in your case.

    Exception says that it unable to add source field, due to it was already added during installation.

    #34815
    Damien LE TROHER
    Damien LE TROHER
    Participant

    Thank you !

    I will try this tomorrow !


    Damien LE TROHER
    SYNOLIA – Division Ecommerce

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
sso for www.magecore.comsso for oroinc.comsso for oroinc.desso for oroinc.frsso for marketplace.orocommerce.comsso for marketplace.orocrm.com