6 use lib 't/cdbi/testlib';
10 package # hide from PAUSE
13 use base 'DBIC::Test::SQLite';
16 __PACKAGE__->set_table('Movies');
17 __PACKAGE__->columns(All => qw(id title));
21 id INTEGER PRIMARY KEY AUTOINCREMENT,
27 my $film = MyFilm->create({ title => "For Your Eyes Only" });
30 my $new_film = $film->copy;
32 isnt $new_film->id, $film->id, "copy() gets new primary key";
34 $new_film = $film->copy(42);
35 is $new_film->id, 42, "copy() with new id";