This topic contains 3 replies, has 2 voices, and was last updated by Geoffroy Cochard 8 years, 4 months ago.
- Topic
Hi,
I’m testing OROCrm solution and the possibilty to extend it.
I’ve got a custom entityA who has a manyToOne relation to OroCRMContact. The goal is to have all methods / relation in the ownerSide of my Doctrine entityA (not complex as Doctrine management) and all methods in the inverseSide too (OROCrmContact).My test : use extendExtension while migration:load
123456789101112131415$this->extendExtension->addOneToManyRelation($schema,$tableContact,'relationNameOf_SelfTable','selfTable',['field_number'],['field_number', 'value'],['field_number'],['extend' => ['is_extend' => true,'without_default' => true]]);In this test :
i can’t control naming convention of foreignKey and onDelete default parameter too and synchronize methodShould i use inverse method as
12345678910111213$this->extendExtension->addManyToOneRelation($schema,'entityA_Table','nameOfRelation_EntityA','orocrm_contact','last_name',['extend' => ['is_extend' => true,'without_default' => true]]);But its not a doctrine best practice to define inverseSide.
???Or use define entityA as Target Associations (likes notes / activities) ?
Thanks for your advices
Geoffroy
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.