[Dbix-class] Moving load_components("InflateColumn::DateTime") to base class breaks cascade delete

Matt S Trout mst at shadowcat.co.uk
Tue Jan 24 22:55:13 GMT 2017

On Mon, Jan 16, 2017 at 12:13:59PM +0000, James Gilbert wrote:
> Hi,
> I followed this recipe:
>   https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/Manual/Cookbook.pod#Move-Common-Startup-into-a-Base-Class
> but when I do this the cascading deletes for my relationships no longer work.

If your result class isn't calling load_components anymore you probably want
to add "use mro 'c3';" somewhere near the top.

Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue

http://shadowcat.co.uk/blog/matt-s-trout/   http://twitter.com/shadowcat_mst/

Email me now on mst (at) shadowcat.co.uk and let's chat about how our CPAN
commercial support, training and consultancy packages could help your team.

More information about the DBIx-Class mailing list