ssossossosso

Forums

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

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

  • Creator
    Topic
  • #3106
    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
  • #3108

    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.

    #3109
    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.