8 my $schema = DBICTest->init_schema();
12 my $bookmark = $schema->resultset("Bookmark")->find(1);
13 my $link = $bookmark->link;
14 my $link_id = $link->id;
18 is $schema->resultset("Link")->search({id => $link_id})->count, 0,
19 "link $link_id was deleted";
21 # Get a fresh object with nothing cached
22 $bookmark = $schema->resultset("Bookmark")->find($bookmark->id);
24 # This would create a new link row if none existed
27 is $schema->resultset("Link")->search({id => $link_id})->count, 0,
28 'accessor did not create a link object where there was none';