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

Christopher H. Laco claco at chrislaco.com
Tue May 8 16:20:51 GMT 2007


Christopher H. Laco wrote:
> 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 =

>>>>> 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-Cla=
ss-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 when
>>> we set those class names for resultsets...
>>>
>>> Speaking of which: mst: any reason not to add a get_set_component class
>>> to Class::Accessor::Grouped? I use it all the time myself in
>>> handel/mango, so it seems like it would be usefully in CAG...
>> None at all. Please do so and switch -current across, I'd forgotten that
>> the old AccessorGroup code did this since I didn't make the change and h=
ave
>> always use'd my resultset classes directly myself.
>>
>> 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.
>>
> =

> =

> For the sake of me not forgetting this later...
> CAG would use 'inherited' as the storage for component classes...
> =

> This leads me to believe that get/set_inherited are wrong when used in
> DBIC because CAG uses standard ISA, and everything in DBIC is C3.
> =

> Assuming that's correct, I'll take a crack ad a CAG::C3...which in
> theory is simply the same as CAG with get_super_paths overridden to use
> caculateMRO()....
> =

> ?

Or, am I overthinking this. C3 just changes the ISA orders right? So, if
it's done by the time I need to surf ISA...does it matter?

-------------- 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/67=
6eb894/signature-0001.pgp


More information about the Dbix-class mailing list