<p><a href="https://github.com/abraxxa" class="user-mention">@abraxxa</a> that is already supported with cascade_delete=0 in the attributes.</p>

<p>The issue is when cascade_delete is turned on, which is the default, then do you delete the row before or after the related rows. Currently it deletes the row first which fails if the RDBMS is not cascading itself and has foreign key checking enabled (which SQLite does not by default)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/dbsrgits/dbix-class/pull/27#issuecomment-18343943'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/4W3BWTo7EIi_7vx28Xzl_mJnCwjxj52C33_Ervpy2ogo-MvpszQvTwkKiTOIEY0G.gif' height='1' width='1'></p>