On 9/22/06, Hartmaier Alexander <[EMAIL PROTECTED]> wrote:
> If B does not always has_many C's you have to specify it as an outer join 
> with { join_type => 'LEFT' } in join relationship definition.
> You can see an example in the docs above the has_many section:

The generated SQL already contains a LEFT OUTER JOIN, since it's a
has_many relationship. As I've said in one of the messages, *the
generated query is fine*.

The problem lies in DBIC where it tries to construct the objects using
the results. Unfortunately, I can't think of a way of fixing it myself
without rewriting the whole one hundred line recursive monster (which
probably would result in a more than one hundred lines, uglier,
recursive monster).

-Nilson Santos F. Jr.

_______________________________________________
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]/

Reply via email to