[Dbix-class] inheritance

Matt S Trout dbix-class at trout.me.uk
Fri Sep 15 21:24:06 CEST 2006


Hermida, Leandro wrote:
> Thank you for the reply,
> 
> Is there any way in the class definition to specify a default prefetch
> attribute?  Otherwise in every place in the application where I do the
> resultset search method on a concrete class I think I will have to put
> the entire inheritance tree for that particular class, $attrs = {
> prefetch => { 'parent_class' => { 'parent_of_parent_class' =>
> 'parent_of_parent_of_parent_class' } } }.

__PACKAGE__->resultset_attributes(...);

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