[CDBI] Does Class::DBI require hash-based objects?
Matt S Trout
dbix-class at trout.me.uk
Tue Jan 3 19:49:59 GMT 2006
On Tue, Jan 03, 2006 at 07:12:48PM +0000, Steven Mackenzie wrote:
> Jesse Sookne wrote:
> > Does Class::DBI require that its subclasses (application base classes
> > as described in the Class::DBI doc) use hash-based objects?
> I've been adding attributes to Class::DBI objects using the "inside out"
> classes/hashes described in Perl Best Practices. I haven't seen any
> conflict with the hash based attributes used in the CDBI part of the
> hierarchy, though I don't actually use Class::Std, just the technique
> described in that book.
WARNING: using the refaddr value as the inside-out key is *not* threadsafe.
Hence why I don't use Contextual::Return, cute though it is.
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the ClassDBI