{ join_type => 'left' },
);
-__PACKAGE__->might_have (
- next_track => __PACKAGE__,
+__PACKAGE__->has_many (
+ next_tracks => __PACKAGE__,
sub {
my $args = shift;
--
-- Created by SQL::Translator::Producer::SQLite
--- Created on Tue Feb 22 18:42:16 2011
+-- Created on Sat Jun 11 00:39:51 2011
--
--
hello integer NOT NULL,
goodbye integer NOT NULL,
sensors character(10) NOT NULL,
- read_count integer,
+ read_count int,
PRIMARY KEY (foo, bar, hello, goodbye)
);
}
my $last_tracks_rs = $schema->resultset('Track')->search (
- {'next_track.trackid' => undef},
- { join => 'next_track', order_by => 'me.cd' },
+ {'next_tracks.trackid' => undef},
+ { join => 'next_tracks', order_by => 'me.cd' },
);
is_deeply (