[Dbix-class] Re: Resultset classes and auto-loading

Christopher H. Laco claco at chrislaco.com
Wed May 9 02:30:01 GMT 2007


Matt S Trout wrote:
> On Thu, Apr 19, 2007 at 12:35:40PM -0400, Christopher H. Laco wrote:
>> Christopher H. Laco wrote:
>>> Kaare Rasmussen wrote:
>>>>> Well, there's your problem. You're trying to use Handel. :-)
>>>> That's one thing, but not the problem at hand :-)
>>>>
>>>> It seems that DBIC changed behavior rather significantly between _01=
 and _02=20
>>>> if the former autoloads RS classes and the latter doesn't.
>>>>
>>> The answer is out there... somewhere...
>>>
>>> http://search.cpan.org/diff?from=3DDBIx-Class-0.07999_01&to=3DDBIx-Cl=
ass-0.07999_02
>> Still digging... probably something to do with the fact that
>> AccessorGroup went away u in _02... and it had
>> get_component_class/set_component_class which loaded the class...
>>
>> Now that that is gone, I'd bet we're just missing a 'use' somewhere wh=
en
>> we set those class names for resultsets...
>>
>> Speaking of which: mst: any reason not to add a get_set_component clas=
s
>> to Class::Accessor::Grouped? I use it all the time myself in
>> handel/mango, so it seems like it would be usefully in CAG...
>=20
> None at all. Please do so and switch -current across, I'd forgotten tha=
t
> the old AccessorGroup code did this since I didn't make the change and =
have
> always use'd my resultset classes directly myself.
>=20
> If this is important to you guys, please can somebody write a test for =
it
> - if that had been done in the first place the regression wouldn't have=

> happened when I did the conversion.
>=20

Half way there...

> The uploaded file
>=20
>     Class-Accessor-Grouped-0.05000.tar.gz
>=20
> has entered CPAN as
>=20
>   file: $CPAN/authors/id/C/CL/CLACO/Class-Accessor-Grouped-0.05000.tar.=
gz
>   size: 23630 bytes
>    md5: 83757b9f5713d1cf52a7016dfca8ed6a
>=20
> No action is required on your part
> Request entered by: CLACO (Christopher H. Laco)
> Request entered on: Wed, 09 May 2007 01:26:01 GMT
> Request completed:  Wed, 09 May 2007 01:26:54 GMT

I'll take a crack at -current tomorrow night...
For those original complainers....what's the problem again?

resultset_class() not autoloading?

-=3DChris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20070508/2eb3476a/signature.pgp


More information about the Dbix-class mailing list