Sorry I figured it out now :)

Thank you for the help

On Thu, Jul 28, 2011 at 10:20 AM, Leandro Hermida <
[email protected]> wrote:

> 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 <[email protected]> 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/[email protected]
>>
>
>
_______________________________________________
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/[email protected]

Reply via email to