use strict;
use warnings;
use base qw( DBIx::Class );
+use Class::C3::Componentised::LoadActions;
=head1 NAME
=head1 METHODS
+
+
=head2 position_column
__PACKAGE__->position_column('position');
__PACKAGE__->mk_classdata( 'position_column' => 'position' );
+## this is private
+AFTER_APPLY { $_[0]->result_source_instance->inject_resultset_components(['+DBIx::Class::Ordered::ResultSet']) };
+
=head2 grouping_column
__PACKAGE__->grouping_column('group_id');
return $self->update(@_);
}
-=head2 table
-
-Overridden to provide a resultset class to override delete and update methods.
-
-Shamelessly stolen from InflateColumn::FS
-
-=cut
-
-sub table {
- my $self = shift;
- warn "**INSIDE Ordered->table**";
- my $ret = $self->next::method(@_);
- $self->result_source_instance->resultset_class(
- 'DBIx::Class::Ordered::ResultSet');
- return $ret;
-}
1;
use Test::More;
use Test::Exception;
use lib qw(t/lib);
+use Data::Dumper;
use DBICTest; # do not remove even though it is not used
#15:01 <@ribasushi> dhoss: you are complicating your life
lives_ok( sub { $cd->delete },
"Cascade delete on ordered has_many doesn't bomb" );
-
is_deeply(
mro::get_linear_isa( ref $schema->resultset("Track") ),
[
qw(
+ DBICTest::BaseResultSet::+::_DBIx_Class_Ordered_ResultSet
DBIx::Class::Ordered::ResultSet
+ DBICTest::BaseResultSet
DBIx::Class::ResultSet
DBIx::Class
DBIx::Class::Componentised