[Dbix-class] belongs_to Error Case

Ash Berlin ash_dbix-class at firemirror.com
Sun Mar 26 16:54:43 CEST 2006


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');

Ash

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





More information about the Dbix-class mailing list