[Dbix-class] [Patch] PK::Auto documentation

Matt S Trout dbix-class at trout.me.uk
Sat Dec 17 18:05:03 CET 2005


On Fri, Dec 16, 2005 at 05:41:02PM -0500, Daniel Westermann-Clark wrote:
> On 2005-12-16 09:43:09 -0500, James FitzGibbon wrote:
> > __PACKAGE__->load_components( qw|Core DB| );
> > __PACKAGE__->load_components( 'PK::Auto::Foo' );
> 
> My understanding is that this works because you've actually called
> inject_base twice, each time triggering a reinitialization of the C3
> dispatch tables.  Though I could be mistaken.
> 
> > I would suggest that a better way to describe the requirements of
> > PK::Auto and others like it is:
> > 
> > - if it is loaded at the same time as Core, it must be to the left
> > in the list of args passed to ->load_components
> > 
> > - if it is not loaded at the same time, it must be loaded after Core
> 
> I'd be happy to supply another patch to the docs to reflect this,
> pending verification from someone more familiar with the internals.

Exactly right. Update to reflect it and commit please (your Catalyst svn
user is now valid for DBIC trunk as well :)

-- 
     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 Dbix-class mailing list