Title: [Dbix-class] cascade delete problem

Hi,

I have a simple cascade delete test that fails under 6.0 but passed under 5.007.

my $foo = $schema->resultset('Foo')->create({ foo => 1 });
my $bar = $schema->resultset('Bar')->create({ bar => 1 });

$bar->foo($bar);
$bar->update;

$foo->delete;

is($schema->resultset('Foo')->count, 0, 'foo deleted');
is($schema->resultset('Bar')->count, 0, 'bar deleted (cascade)');

Stepping through with the debugger it would appear that it never goes through the CascadeActions code.

Any clues where I should start looking with this? I couldn't find an obvious test case in DBIC.

Thanks, Richard




http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received.
Further communication will signify your consent to this.

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/

Reply via email to