[Dbix-class] belongs_to Error Case

Matt S Trout dbix-class at trout.me.uk
Sun Mar 26 17:07:42 CEST 2006


Ash Berlin wrote:
> Was speaking with castaway in IRC, and discovered belongs_to didn't seem 
> to work (in this case) without fully specifying the package name:
> 
> __PACKAGE__->belongs_to('role' => 'Role');
> # The above line doesn't work, the below does
> #__PACKAGE__->belongs_to('role' => 'Schema::Role');

Absolutely true. Making relative foreign class names work properly is on the 
to-do list.

> (I sent this before on the 24th, but it didn't seem to make it through)

Your address wasn't subscribed at that point so it got held for moderation; 
the list would have mailed you back telling you that. I've just cleared two 
copies of this message out the mod queue.

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