OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

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

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

  • Creator
    Topic
  • #34813

    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
    Participant

    Thank you !

    I will try this tomorrow !


    Damien LE TROHER
    SYNOLIA – Division Ecommerce

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

The forum ‘OroPlatform – Installation/Technical Issues or Problems’ is closed to new topics and replies.

Back to top