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 :)

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to