[Dbix-class] cascade delete problem

Richard Jolly Richard.Jolly at bbc.co.uk
Thu Mar 30 13:14:04 CEST 2006


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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/dbix-class/attachments/20060330/28bd8238/attachment.htm 


More information about the Dbix-class mailing list