10 my $schema = DBICTest->init_schema();
14 my $bookmark = $schema->resultset("Bookmark")->find(1);
15 my $link = $bookmark->link;
16 my $link_id = $link->id;
20 is $schema->resultset("Link")->search(id => $link_id)->count, 0,
21 "link $link_id was deleted";
23 # Get a fresh object with nothing cached
24 $bookmark = $schema->resultset("Bookmark")->find($bookmark->id);
26 # This would create a new link row if none existed
29 is $schema->resultset("Link")->search(id => $link_id)->count, 0,
30 'accessor did not create a link object where there was none';