ok my $row = $schema
->resultset('Photo')
->create({
- photographer=>'john',
+ album=> {name=>'masterpiece'},
+ photographer=> {name=>'john'},
file=>$fh,
});
ok -e $key, 'File Created';
ok $schema->resultset('Photo')->delete;
+ok $schema->resultset('Photographer')->delete;
+ok $schema->resultset('Album')->delete;
ok ! -e $key, 'File Deleted';