Best practices to enforce 1:1 relationships?

It turns out that Sugar does not enforce 1:1 relationships, it overwrites them with no warning to the user. (Bug?)

Is my only option for enforcement a custom before-relationship-add logic hook?

Thanks,

Francesca

Parents
  • I ended up implementing a custom check and alerting the user with a confirmation message that specifies that continuing to save will destroy the prior relationship.

    Francesca

Reply
  • I ended up implementing a custom check and alerting the user with a confirmation message that specifies that continuing to save will destroy the prior relationship.

    Francesca

Children
No Data