Catalyst::Helper::Model::MultiAdaptor - helper for the incredibly lazy
catalyst.pl model SomeClass MultiAdaptor MyApp::Service
MyApp::Model::SomeClass that looks like:
package MyApp::Model::SomeClass; use strict; use warnings; use base 'Catalyst::Model::MultiAdaptor'; __PACKAGE__->config( package => 'MyApp::Service', ); 1;
Why you need a script to generate that is beyond me, but here it is.
catalyst.pl model <model_name> MultiAdaptor <package>
You need to sepecify the
model_name (the name of the model), and
package, the base package for plain old perl models.
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
No copyright claim is asserted over the generated code.