[Dbix-class] Weird behaviour in 0.07999_02
Christopher H. Laco
claco at chrislaco.com
Thu Apr 19 17:46:37 GMT 2007
> Well, duh... this effected release version as well as the dev
> versions...from ye olde Changes:
> =
> =
>> -0.07003 2006-XX-XX XX:XX:XX
>> + - Replaced DBIx::Class::AccessorGroup and Class::Data::Accessor=
with
>> + Class::Accessor::Grouped. Only user noticible change is to =
>> + table_class on ResultSourceProxy::Table (i.e. table objects i=
n =
>> + schemas) and, resultset_class and result_class in ResultSourc=
e. =
>> + These accessors no longer automatically require the classes w=
hen
>> + set.
> =
> _01 was released before _03...
> So, if you were using 0.07003+, you would have this problem.
> =
> So, my question is, why doesn't setting result_class automatically load
> that class any more? I thought ensure_class_loaded ot something was
> involved... maybe not...
> =
> -=3DChris
Specifically:
> -__PACKAGE__->mk_group_accessors('component_class' =3D> qw/resultset_class
> +__PACKAGE__->mk_group_accessors('inherited' =3D> qw/resultset_class
> result_class/);
So, I'd say either we should add get/set_component_class to CAG (which
is usefully to other projects), or we need to tweak these
setters/getters to call ensure_class_loaded...
-=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/20070419/58=
e4ea67/signature.pgp
More information about the Dbix-class
mailing list