On May 25, 2006, at 1:30 PM, John Siracusa wrote:

This "dot-chaining" of relationship names in with_objects and
require_objects parameter values is demonstrated in the tutorial
section linked earlier.  Search for the string "'vendor.region'" to
find the example.

kickass.  thank you.

hopefully this is the last question of the day:

i need to pull this info quite a bit. would it be bad form to add it into the a Manager derived class as such?

====
package MyApp::RoseDB::Object::UseraccountAsset::Manager;
use Rose::DB::Object::Manager;
our @ISA = qw(Rose::DB::Object::Manager);
sub object_class { 'MyApp::RoseDB::Object:: UseraccountAsset ' }
__PACKAGE__->make_manager_methods('useraccount_asset');
sub get_useraccount_asset__full
{
        my ( $class, $id , $db ) = @_ ;
        return $class->get_useraccount_asset(
                query=> [
                        useraccount_id => $id,
                ],
                require_objects => [ 'asset' , 'asset.asset_type' ],
                db=> $db
        );
};
====

or is there a better way?  i'm thinking that this is the way to do it.


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to