Re: [RDBO] pulling info on a dependent class

2006-05-25 Thread John Siracusa
On 5/25/06, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: 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::Ma

Re: [RDBO] pulling info on a dependent class

2006-05-25 Thread Jonathan Vanasco
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. hopefull

Re: [RDBO] pulling info on a dependent class

2006-05-25 Thread John Siracusa
On 5/25/06, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: i have the 2 packages below Asset AssetType Asset is basically name id type_id where type_id is a fkey to another table when i pull a record for Asset or join onto asset from another table, i need t

Re: [RDBO] pulling info on a dependent class

2006-05-25 Thread Jonathan Vanasco
On May 25, 2006, at 12:56 PM, Sean Davis wrote: Not sure if this covers it, but did you look at this: http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.727/lib/Rose/DB/ Object/Tu torial.pod#Auto-joins_and_other_Manager_features Sean yeah , i saw that but it only does it halfway i should

Re: [RDBO] pulling info on a dependent class

2006-05-25 Thread Sean Davis
Not sure if this covers it, but did you look at this: http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.727/lib/Rose/DB/Object/Tu torial.pod#Auto-joins_and_other_Manager_features Sean On 5/25/06 12:46 PM, "Jonathan Vanasco" <[EMAIL PROTECTED]> wrote: > > i have the 2 packages below > Asset

Re: [RDBO] pulling info on a dependent class

2006-05-25 Thread John Siracusa
On 5/25/06, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: C->get_c( query=> [ id => 1, ], require_objects => [ 'B' , 'A' ], ); where A isn't defined in C, but is a FKEY in class B $cs = C->get_c(query => [ id => 1 ], require

[RDBO] pulling info on a dependent class

2006-05-25 Thread Jonathan Vanasco
i have the 2 packages below Asset AssetType Asset is basically name id type_id where type_id is a fkey to another table when i pull a record for Asset or join onto asset from another table, i need to get the asset_type_id name sometimes i pull a record