[Dbix-class] help building query w/ ->search() or using arbitrary select?
Matt S Trout
dbix-class at trout.me.uk
Wed Aug 9 19:08:08 CEST 2006
George Hartzell wrote:
> I think that I understand that I can do something like this:
>
> { join => {nodes => attrs}}
>
> to get at <node_attr>'s that belong_to <node>'s that belong_to an
> <rn>. But at this point I no longer know how to get the rn and rncbt
> join that I achieved in the example above with the simple:
>
> { join => 'rncbts' }
>
> Is there a way to do both?
>
> And even goofier, I'm working with pairs of nodes and contraining on
> their node_attr's, so I think I need to do this:
>
> { join => {nodes => attrs,
> nodes => attrs}}
>
> which I think should give me attrs and attrs_2 that belong to node and
> node_2 that belong_to <rn>???
join => [ 'rncbts', { nodes => 'attrs' }, { nodes => 'attrs' } ]
More information about the Dbix-class
mailing list