AnsweredAssumed Answered

Where should relationship metadata be placed?

Question asked by Amy Cox on Mar 28, 2016
Latest reply on Mar 29, 2016 by Dhaivat Naik

I created a relationship using studio, so that I can see how to write the custom code. Then I change the needed variables to the correct name.

Example: contacts_lev_contracts_1 to contacts_lev_contracts_billing_contact

 

I have noticed that the code created in the following files is the same and seem to override another. Where is the best place to put the MetaData?

 

./custom/metadata/{relationshipName}MetaData.php

./custom/Extension/modules/relationships/relationships/{relationshipName}MetaData.php

 

I am doing this in Sugar 6.5, but I believe a Sugar 7 answer should also be relevant.

Outcomes