This topic contains 2 replies, has 2 voices, and was last updated by Damien LE TROHER 10 years ago.
- Topic
Hi all,
We just tried to extend an entity from OroCRM.
We used the following code in entity_extend.yml
OroCRM\Bundle\ContactBundle\Entity\Contact:
fields:
test_synolia1:
owner: 'Custom' #default 'System'
type: stringAfter, we just use the command :
php app/console oro:entity-extend:init
and we get this error :12[InvalidArgumentException]Field "extend_source" for Entity "OroCRM\Bundle\SalesBundle\Entity\Lead" already addedNote 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.
12345if ($this->configManager->hasConfig($className, $fieldName)) {throw new \InvalidArgumentException(sprintf('Field "%s" for Entity "%s" already added', $fieldName, $className));}We just removed this “throw” and all works fine now.
Can you explain it to us ?
Thank you.
Damien LE TROHER
SYNOLIA – Division Ecommerce
The forum ‘OroPlatform – Installation/Technical Issues or Problems’ is closed to new topics and replies.