Re: How to avoid $class->new($value) with inflate

[prev] [thread] [next] [Date index for 2005/03/03]

From: Matt S Trout
Subject: Re: How to avoid $class->new($value) with inflate
Date: 15:31 on 03 Mar 2005
On Thu, Mar 03, 2005 at 10:17:27AM -0500, William McKee wrote:
> > I've seen this come up a few times in the last several weeks; maybe it's 
> > worth writing a small Class::DBI::Relationship::Transform that'd simplify 
> > the process.  I'll have a crack at it if there's general consensus that 
> > it'd be a Good Thing.  Any alternate ideas about the name?
> 
> Charles,
> 
> How would this new class be easier than writing a trigger? I'm not
> convinced that the explosion of the Relationship::* namespace is a good
> thing for new CDBI users (or even folks like myself who are still trying
> to get a better grasp even after a year of using it). I'm open to being
> persuaded otherwise.

root@mccoy:/usr/local/src/.cpan/sources/modules# zgrep Class::DBI::Relationship
02packages.details.txt.gz
Class::DBI::Relationship          undef  T/TM/TMTM/Class-DBI-0.96.tar.gz
Class::DBI::Relationship::HasA    undef  T/TM/TMTM/Class-DBI-0.96.tar.gz
Class::DBI::Relationship::HasMany undef  T/TM/TMTM/Class-DBI-0.96.tar.gz
Class::DBI::Relationship::HasManyOrdered 0.02  T/TE/TEEJAY/Class-DBI-Relationship-HasManyOrdered-0.02.tar.gz
Class::DBI::Relationship::HasVariant 0.01  R/RJ/RJBS/Class-DBI-Relationship-HasVariant-0.01.tar.gz
Class::DBI::Relationship::IsA      0.05  R/RH/RHUNDT/Class-DBI-Relationship-IsA-0.05.tar.gz
Class::DBI::Relationship::MightHave undef  T/TM/TMTM/Class-DBI-0.96.tar.gz

Doesn't really seem like an explosion, as such - three other than the ones
shipped with Class::DBI itself.

I do, however, think the Class::DBI docs should mention that there are other
relationship modules; I discovered their existence only by accident and I'd
guess I'm not alone (there must be at least a few other coders this stupid ;)

        -- 
            Matt S Trout            Brag sheet:    http://trout.me.uk/services.html
LAMP, Infrastructure        Contact:       services@xxxxx.xx.xx
   and Automation
     specialist                                       Do it once. Do it right.

(message missing)

How to avoid $class->new($value) with inflate
Matija Grabnar 12:18 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
Charles Bailey 14:45 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
William McKee 15:17 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
Matt S Trout 15:31 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
William McKee 15:40 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
Charles Bailey 16:10 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
Perrin Harkins 16:15 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
William McKee 16:50 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
Perrin Harkins 17:00 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
Charles Bailey 17:29 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
Perrin Harkins 19:34 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
William Ross 17:10 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
Michael Peters 17:08 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
Perrin Harkins 17:12 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
Perrin Harkins 19:49 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
Carl Johnstone 09:56 on 04 Mar 2005

Re: How to avoid $class->new($value) with inflate
Frank Carnovale 23:19 on 03 Mar 2005

Re: How to avoid $class->new($value) with inflate
Frank Carnovale 23:44 on 06 Mar 2005

Re: How to avoid $class->new($value) with inflate
Matt S Trout 17:34 on 03 Mar 2005

Generated at 20:12 on 07 Mar 2005 by mariachi v0.52