in reply to Problems Using Join in DBIx::Class
Hi, since you are not apparently constraining your resultset on any columns from the joined table, I surmise that you are simply wanting to load all the related data from it in the same query. If so, according to FETCHING RELATED DATA in the DBIx::Class manual, don't you need prefetch? ("Of the three, only the prefetch technique will deal sanely with fetching related objects over a has_many relation.")
In general, for debugging you might want to set DBIC_TRACE=1 in your env, so as to see the actual SQL being produced by your code. Also, try running a simpler query without the ORs, just for debugging clarity.
Hope this helps!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Problems Using Join in DBIx::Class
by phildeman (Scribe) on Dec 28, 2017 at 06:31 UTC | |
by soonix (Chancellor) on Dec 28, 2017 at 08:48 UTC | |
by phildeman (Scribe) on Dec 29, 2017 at 03:11 UTC | |
by poj (Abbot) on Dec 29, 2017 at 08:50 UTC | |
by 1nickt (Canon) on Dec 29, 2017 at 04:26 UTC | |
by poj (Abbot) on Dec 28, 2017 at 19:04 UTC | |
by phildeman (Scribe) on Dec 29, 2017 at 02:19 UTC |