Skip Menu |

This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id: 62602
Status: rejected
Priority: 0/
Queue: DBIx-Class

People
Owner: Nobody in particular
Requestors: cesheri [...] swbell.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.08124
Fixed in: (no value)



Subject: \%column Arg for Relationship attr 'proxy' Fails Compile
----------------------------------------------- BUG: \%column Arg for Relationship attr 'proxy' Fails Compile ----------------------------------------------- A \%column arg for the Relationship attr 'proxy', as below, { proxy => { team_name => 'name' } } FAILS compile with error: Uncaught exception from user code: DBIx::Class::Schema::throw_exception(): Not an ARRAY reference at /Users/chas/Library/ActivePerl- 5.10/lib/DBIx/Class/Relationship/ProxyMethods.pm line 17. \@columns arg syntaxes, as below, pass compile. { proxy => [ { team_name => 'name' } ] } { proxy => [ qw(team_id) ] } Perl Version: ActiveState 5.10.1 OS: Mac OS X 10.6.4
On Mon Nov 01 00:04:54 2010, cesheri@swbell.net wrote: Show quoted text
> A \%column arg for the Relationship attr 'proxy', as below, > > { proxy => { team_name => 'name' } } > > FAILS compile with error: > > Uncaught exception from user code: > DBIx::Class::Schema::throw_exception(): Not an ARRAY reference > at /Users/chas/Library/ActivePerl- > 5.10/lib/DBIx/Class/Relationship/ProxyMethods.pm line 17.
Line 17 in the recently release 0.08124 which introduces the above syntax: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits/DBIx-Class.git;a=blob;f=lib/DBIx/Class/Relationship/ProxyMethods.pm;hb=HEAD#l17 Line 17 in the previous June release 0.08123 (which never supported named proxies in the first place): http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits/DBIx-Class.git;a=blob;f=lib/DBIx/Class/Relationship/ProxyMethods.pm;hb=v0.08123#l17 You are clearly not running what you think you are running.
Subject: Re: [rt.cpan.org #62602] \%column Arg for Relationship attr 'proxy' Fails Compile
Date: Mon, 01 Nov 2010 10:55:07 -0500
To: bug-DBIx-Class [...] rt.cpan.org
From: Charles Sheridan <cesheri [...] swbell.net>
Peter, You are correct, thanks. The current version in the ActiveState perl PPM has 0.08115, and I had downloaded from that PPM on Fri 29 Oct, on the premise that it would be consistent w/ the latest CPAN release. So when I viewed the CPAN documentation, I thought that it was for the code that I was using. WRONG! So I'll be more diligent about checking ActiveState PPM module versions vs. those on CPAN. By the way, I had used DBI during 2005, and haven't since then been writing perl-DBMS code. After recent research on current ORM alternatives, I decided on DBIx::Class, and am really impressed. It's a really a pleasure to see what it can do, and I expect to rely on it for a few ongoing projects. Thanks to you, Matt Trout, and all others involved w/ DBIx::Class. Regards, Charles Sheridan Dallas On 10-11-01 9:52 AM, Peter Rabbitson via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=62602> > > On Mon Nov 01 00:04:54 2010, cesheri@swbell.net wrote:
>> A \%column arg for the Relationship attr 'proxy', as below, >> >> { proxy => { team_name => 'name' } } >> >> FAILS compile with error: >> >> Uncaught exception from user code: >> DBIx::Class::Schema::throw_exception(): Not an ARRAY reference >> at /Users/chas/Library/ActivePerl- >> 5.10/lib/DBIx/Class/Relationship/ProxyMethods.pm line 17.
> Line 17 in the recently release 0.08124 which introduces the above syntax: > http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits/DBIx-Class.git;a=blob;f=lib/DBIx/Class/Relationship/ProxyMethods.pm;hb=HEAD#l17 > > Line 17 in the previous June release 0.08123 (which never supported > named proxies in the first place): > http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits/DBIx-Class.git;a=blob;f=lib/DBIx/Class/Relationship/ProxyMethods.pm;hb=v0.08123#l17 > > You are clearly not running what you think you are running. >