on 2018 Sep 03 10:28 AM
Hi ,
The UserGroup was updated, which should not be because I've changed nothing but the association with a Customer, and I can not find a way to manlipulate the PrincipalGroupRelation in code.
Is there anyway to manlipulate the PrincipalGroupRelation in code, or disable the update for UserGroup during the changing of Customer's groups.
Request clarification before answering.
Between UserGroup and Customer is a many-to-may relation, and one of the features of such a relation is that both ends are updated when one end changes. You will always be able to navigate to all customers of a group, or to all groups of a customer, regardless where you change the relation.
But, there are some ways to suppress at least the update of the modifiedtime of the Customer or UserGroup using following property:
relation. PrincipalGroupRelation.markmodified = false
This works with every relation, the syntax is relation.<relationname>.markmodifed=false|true
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.