[Dbix-class] can't locate object method "union" when using
DBIx::Class::Helper::ResultSet::SetOperations
Leandro Hermida
softdev at leandrohermida.com
Thu Jul 28 08:20:38 GMT 2011
Sorry for being a little lost...
MyApp::Schema::Result::* classes are my tables and when you call them in
code you use the method ->resultset('...') sorry for thinking they were also
ResultSets.
I want to union these two tables, how do I create a ResultSet component for
e.g. ContrastDataSetAnnotation and GeneSetAnnotation Result classes where I
can then load the SetOperations helper component?
thanks a lot,
Leandro
On Wed, Jul 27, 2011 at 8:56 PM, fREW Schmidt <frioux at gmail.com> wrote:
>
> Loaded component in the result class files:
>>
>> package MyApp::Schema::Result::GeneSetAnnotation;
>> use base 'DBIx::Class::Core';
>> __PACKAGE__->load_components(qw/Helper::ResultSet::SetOperations/);
>>
>
> This is your problem. This is a Result*Set* component, and needs to be
> loaded into a resultset, not the result.
>
> --
> fREW Schmidt
> http://blog.afoolishmanifesto.com
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive:
> http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20110728/17f=
a33a9/attachment.htm
More information about the DBIx-Class
mailing list