Re: [Catalyst] How to get from

2010-09-18 Thread will trillich
Ah -- yes indeed, that did the trick. That chain was a bit longer than I could put together on my own. Thanks! On Sat, Sep 18, 2010 at 7:05 PM, Steve Nolte wrote: > Agreed that this is a DBIx::Class question, but I think you want something > like: > > $self->result_source->schema->resultset('N

[Catalyst] How to get from

2010-09-18 Thread Steve Nolte
Agreed that this is a DBIx::Class question, but I think you want something like: $self->result_source->schema->resultset('NAME_OF_RESULTSET_YOU_WANT')->find($id) ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/li

Re: [Catalyst] How to get from

2010-09-18 Thread will trillich
Thanks, Tom -- But this apparently isn't a result-class, or I'm just missing something obvious: DB<<5>> p __PACKAGE__ MyApp::Schema::DB::Result::Group DB<<7>> p "$self" MyApp::Model::MyApp::Group DB<<8>> p $self->resultset Can't locate object method "resultset" via package "MyApp::Model::MyApp:

Re: [Catalyst] How to get from

2010-09-18 Thread Tomas Doran
On 18 Sep 2010, at 17:00, will trillich wrote: So the real question is, how do we get from $self to ->find() ? From a result class, $self->resultset->find is probably what you want. You should also probably be asking questions about DBIx::Class on the DBIx::Class list, not the Catalyst lis

[Catalyst] How to get from

2010-09-18 Thread will trillich
Short version: we're wondering how a method from inside the SCHEMA can return other objects besides the one that got passed in. That is, we have $obj (with its own ID number) but we want to FIND a different object -- same type, but with a different ID number. What's the mechanism for that, inside t