I can't use two own components that use ResultSetManager.
ex:
package DBIx::Class::Foo;
use strict;
use base qw/DBIx::Class/;
__PACKAGE__->load_components(qw/ResultSetManager/);
sub foo : ResultSet {
}
1;
package DBIx::Class::Bar;
use strict;
use base qw/DBIx::Class/;
__PACKAGE__->load_components(qw/ResultSetManager/);
sub bar : ResultSet {
}
1;
package DBIC::Test;
use strict;
use base 'DBIx::Class';
__PACKAGE__->load_components(qw/Foo Bar PK::Auto::SQLite Core/);
1;
my $schema = DBIC->connect(...);
my $it;
$it = $schema->resultset('Test')->foo(); # ok
$it = $schema->resultset('Test')->bar(); # not ok
The ResultSet attribute exist in the method of the foo.
But the ResultSet attribute doesn't exist in the method of the bar.
Is my usage wrong?
atsushi
_______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
