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:loadPHP123456789101112131415$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 method
Should i use inverse method asPHP12345678910111213$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
You must be logged in to reply to this topic.