AnsweredAssumed Answered

Getting/Adding/Deleting records from many to many relationship

Question asked by community-support on Jan 13, 2014
Latest reply on Jan 13, 2014 by community-support

I've been successfully working with one to many relations, but when it comes to many to many relationship, no success. Actually I think I am doing something wrong.

There's a many to many relationship between SecurityGroup and Task (running sugar 6.5.15 + SecuritySuite 267) and I would like to programmatically add a securitygroup to a task. I am trying to get the records from 'securitygroups_tasks' relationship and add a new record to it. When it comes to many to many relationships, can I work with one of the entities of the relationship, call load_relationship, getBeans and so on?