[Dbix-class] So I don't have to dig
Peter Rabbitson
rabbit+dbic at rabbit.us
Thu Jun 17 08:47:25 GMT 2010
Dorian Taylor (Lists) wrote:
> Hey guys,
>
> Can you tell me where to go looking for the basic mechanism that enables
> the __PACKAGE__->add_some_static_data(...) class accessors? Is that a C3
> thing? I'm trying to make some pluggable classes that only differ in
> static data (just like DBIx::Class table classes) and I'd like to pinch
> the technique.
Please ignore Rob's advice wrt Class::Accessors. Instead rtfm:
http://search.cpan.org/~frew/DBIx-Class-0.08123/lib/DBIx/Class/Manual/FAQ.pod#How_do_I_store_my_own_%28non-db%29_data_in_my_DBIx::Class_objects?
Note that DBIC is entirely C::A::G based, so the example is correct in not
requiring any extra modules.
Cheers :)
More information about the DBIx-Class
mailing list