Hi,
If I put the ..::Manager package in the same file as the object package, the standard perl use function will not be able to find it.
# MyApp::Models/User.pm
package MyApp::Models::User::Manager;
use base qw(Rose::DB::Object::Manager);
sub object_class { 'MyApp::Models::User'}
__PACKAGE__->make_manager_methods('users');
#--------------------------------------------------
package MyApp::Models::User;
use base qw(MyApp::DB::Object);
1;
use MyApp::Models::User::Manager; #error
Perl expects by convention to find MyApp::Models::User::Manager in the file MyApp::Models/User/Manager.pm. Is there a clean way to avoid the need to create an extra directory and a small file called Manager.pm, for each object class?
(This is more of a perl question than Rose, but I think people here have already experimented with this issue).
TIA
~henq