AnsweredAssumed Answered

Adding relationships programatically

Question asked by Brian Hearn on Jul 24, 2018
Latest reply on Jul 25, 2018 by Alan Beam

In the developer docs

 http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Application_Framework/Teams/Manipula… 

it says to load a relationship with 'teams' this way:

 

 

I have had zero success using load_relationship('teams').  Instead I am using load_relationship('team_count_link')

and adding the team id with $bean->team_count_link->add(array($team_id_1, $team_id_2)).

 

Is this an issue with the docs not being clear or am I doing something wrong?

 

-Thanks

Outcomes