I've read the cpan info on DBIx::Class::CDBICompat, but cant seem to get an
actual working example going. In particular I want the sth_to_objects
method, which I believe is in the ImaDBI component. I'm perhaps complicating
things further by loading the ResultSetManager component so that I can
execute and return a result set in my object. I've tried making CDBICompat
the base class, and also loading as a component.
So I have a function like:
sub get_some_data : ResultSet {
my ($self) = @_;
my $dbh = $self->result_source->schema->storage->dbh;
my $sth = $dbh->prepare("select * from sometable");
$sth->execute();
##### this doesn't work, how do I use this method?
return $self->sth_to_objects($sth);
}
*
Thanks!*
_______________________________________________
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/
Searchable Archive: http://www.mail-archive.com/[email protected]/