Will Hawes wrote:
Whoops, my bad. $c->model() does indeed return a DBIx::Class::ResultSet,
so you would need to retrieve/create an instance of your UsedPassword
class from the resultset in order to call any methods on it:
my $used_password = $c->model('DBIC::UsedPassword')->create( { user =>
'user', password => 'password' } );
$used_password->foo_method()
IIRC, can't you get the original record source back from the resultset ?
my $used_password =
$c->model('DBIC::UsedPassword')->result_source->create_limited();
S.
_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/