Cannot modify relationship field? RRS feed

  • Question

  • I'm having difficulty modifying a relationship. Specifically the relationship called "contact_customer_accounts" under Accounts->1:N Relationships. We want to change the Delete option to Cascade none but the option is grayed out. How can I go about changing this option?

    Dan Chandler-Klein

    Wednesday, May 7, 2014 4:30 PM

All replies

  • The system won't allow that setting as it leads to orphaned contacts when an account is deleted.

    As a workaround, you could write a pre-delete plugin to check if an account has related contacts and abort the transaction till all the contacts are reassigned to some other account.

    If my response helps you in finding your answer then please click 'Mark as Answer' and 'Vote as Helpful'

    • Proposed as answer by Mamatha Swamy Wednesday, May 7, 2014 5:11 PM
    Wednesday, May 7, 2014 5:10 PM