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;
18 my $new_link = $schema->resultset("Link")->new({
20 url => "http://monstersarereal.com",
21 title => "monstersarereal.com"
24 # Changing a relationship by id rather than by object would cause
25 # old related_resultsets to be used.
26 $bookmark->link($new_link->id);
27 is $bookmark->link->id, $new_link->id;
30 is $bookmark->link->id, $new_link->id;