Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

stop DBIx::Class from attempting to cascade deletes on my has_many relationships?

0
Posted

stop DBIx::Class from attempting to cascade deletes on my has_many relationships?

0

By default, DBIx::Class cascades deletes and updates across has_many relationships. If your database already does this (and that is probably better), turn it off by supplying cascade_delete => 0 in the relationship attributes. See DBIx::Class::Relationship::Base.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123