>>
>> __PACKAGE__->belongs_to(user => 'CatapultDB::Users', 'user_id');
>And the class is called Catapult::Schema::CatapultDB::Users.
>Try passing it the class name that actually exists :)
Ah, ok, I was thinking about the way schema objects are accessed in the controller:
$c->model('CatapultDB::Someclass')
instead of the "path/to" version
$c->model('Path:to::CatapultDB::Someclass')
I expected a similar pattern here, and that tripped me up. Your hint pointed me in the right direction; the code works much better now!
/dennis
_______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
