Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-10-12 Thread Peter Rabbitson
Moritz Onken wrote: > After talking to mst, the exception was degraded to a warn. > Patch attached. > Applied to trunk after augmenting warning text and adjusting necessary tests. ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class I

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-10-10 Thread Moritz Onken
Am 10.10.2008 um 14:37 schrieb Moritz Onken: After talking to mst, the exception was degraded to a warn. Patch attached. greets, moritz < resultset .diff>___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-10-10 Thread Peter Rabbitson
Moritz Onken wrote: > After talking to mst, the exception was degraded to a warn. > Patch attached. > Why lose the verbosity of the warning? How about: carp ( "Prefetching multiple has_many rels ${last} and ${pre} " .(length($as_prefix) ? "at the same level (${as_prefix}) "

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-10-10 Thread Moritz Onken
After talking to mst, the exception was degraded to a warn. Patch attached. greets, moritz resultset.diff Description: Binary data test.diff Description: Binary data ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.p

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-08-27 Thread Moritz Onken
Forgot the DBIC patch Index: /Users/mo/Documents/workspace/DBIx-Class/lib/DBIx/Class/ ResultSource.pm === --- /Users/mo/Documents/workspace/DBIx-Class/lib/DBIx/Class/ ResultSource.pm (revision 4784) +++ /Users/mo/Documents/workspa

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-08-27 Thread Moritz Onken
Am 26.08.2008 um 20:34 schrieb Matt S Trout: On Tue, Aug 26, 2008 at 03:03:11PM +0200, Moritz Onken wrote: As I said I'm on it and writing some examples and tests. Ok, awesome. Please start a new thread when you've got that together, I think this one was mostly the "resolving confusion" t

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-08-26 Thread Matt S Trout
On Tue, Aug 26, 2008 at 03:03:11PM +0200, Moritz Onken wrote: > As I said I'm on it and writing some examples and tests. Ok, awesome. Please start a new thread when you've got that together, I think this one was mostly the "resolving confusion" thread so the "figuring out what to fix" one can be i

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-08-26 Thread Moritz Onken
Am 25.08.2008 um 20:43 schrieb Matt S Trout: On Sat, Aug 23, 2008 at 08:53:27AM +0200, Moritz Onken wrote: Something like: my $search = { }; my $attr = { prefetch => [ qw/tracks tags/ ] }; my $cd = $schema->resultset("Artist")->first->cds->search($search, $attr)->first; $cd->tracks->all; $c

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-08-25 Thread Matt S Trout
On Sat, Aug 23, 2008 at 08:53:27AM +0200, Moritz Onken wrote: > Something like: > > my $search = { }; > my $attr = { prefetch => [ qw/tracks tags/ ] }; > > my $cd = $schema->resultset("Artist")->first->cds->search($search, > $attr)->first; > $cd->tracks->all; > $cd->tags->all; > > did work fo

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-08-22 Thread Moritz Onken
Am 22.08.2008 um 23:42 schrieb Peter Rabbitson: Moritz Onken wrote: Hi, I installed the latest svn revision of DBIx-Class-0.08099_04 and my code fails serval times because I prefetch multiple has_many rels. This was no problem with 0.08010. Why did you change this behaviour? I didn't rea

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-08-22 Thread Peter Rabbitson
Moritz Onken wrote: > Hi, > > I installed the latest svn revision of DBIx-Class-0.08099_04 and my code > fails serval times because I prefetch multiple has_many rels. This was > no problem with 0.08010. Why did you change this behaviour? I didn't > read anything about this on thsi list. > I have t

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-08-22 Thread Matt S Trout
On Fri, Aug 22, 2008 at 03:12:45PM +0200, Moritz Onken wrote: > Hi, > > I installed the latest svn revision of DBIx-Class-0.08099_04 and my > code fails serval times because I prefetch multiple has_many rels. This has never worked. Now it errors instead of doing something random. If you had

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-08-22 Thread Ash Berlin
On 22 Aug 2008, at 14:12, Moritz Onken wrote: Hi, I installed the latest svn revision of DBIx-Class-0.08099_04 and my code fails serval times because I prefetch multiple has_many rels. This was no problem with 0.08010. Why did you change this behaviour? I didn't read anything about this

[Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-08-22 Thread Moritz Onken
Hi, I installed the latest svn revision of DBIx-Class-0.08099_04 and my code fails serval times because I prefetch multiple has_many rels. This was no problem with 0.08010. Why did you change this behaviour? I didn't read anything about this on thsi list. I have to change a lot of code for