Re: [Catalyst] Doing work inside the DBIx::Class model

2008-02-23 Thread Matt S Trout
On Thu, Feb 21, 2008 at 01:59:40PM +1000, Cian Barclay wrote: On Wed, Feb 20, 2008 at 4:33 PM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: He meant result_source: http://cpan.uwinnipeg.ca/htdocs/DBIx-Class/DBIx/Class/ResultSet.html#result_source Thanks Zbigniew and Toby, that's

Re: [Catalyst] Doing work inside the DBIx::Class model

2008-02-23 Thread Matt S Trout
On Thu, Feb 21, 2008 at 09:17:33AM +0100, Peter Sørensen wrote: He meant result_source: http://cpan.uwinnipeg.ca/htdocs/DBIx-Class/DBIx/Class/ResultSet.html#result_source But this is not all and it is something that begs for a FAQ entry - I always forget how to do it. The important thing

RE: [Catalyst] Doing work inside the DBIx::Class model

2008-02-21 Thread Peter Sørensen
He meant result_source: http://cpan.uwinnipeg.ca/htdocs/DBIx-Class/DBIx/Class/ResultSet.html#result_source But this is not all and it is something that begs for a FAQ entry - I always forget how to do it. The important thing is how to add new methods to the ResultSet: package ArchivedBooks;

Re: [Catalyst] Doing work inside the DBIx::Class model

2008-02-21 Thread Zbigniew Lukasiak
On Thu, Feb 21, 2008 at 9:17 AM, Peter Sørensen [EMAIL PROTECTED] wrote: He meant result_source: http://cpan.uwinnipeg.ca/htdocs/DBIx-Class/DBIx/Class/ResultSet.html#result_source But this is not all and it is something that begs for a FAQ entry - I always forget how to do it. The

Re: [Catalyst] Doing work inside the DBIx::Class model

2008-02-20 Thread Cian Barclay
On Wed, Feb 20, 2008 at 4:33 PM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: He meant result_source: http://cpan.uwinnipeg.ca/htdocs/DBIx-Class/DBIx/Class/ResultSet.html#result_source Thanks Zbigniew and Toby, that's just what I needed to know. Is there a good way to call a class method and

Re: [Catalyst] Doing work inside the DBIx::Class model

2008-02-19 Thread Toby Corkindale
On Wed, Feb 20, 2008 at 01:10:12PM +1000, Cian Barclay wrote: Hello Catalysters, I'm using Catalyst with a DBIx::Class model generated by DBIx::Class::Schema::Loader. I want to make my model do more work, rather than having my controllers fiddling around with model objects doing things to

Re: [Catalyst] Doing work inside the DBIx::Class model

2008-02-19 Thread Cian Barclay
On Feb 20, 2008 1:18 PM, Toby Corkindale [EMAIL PROTECTED] wrote: On Wed, Feb 20, 2008 at 01:10:12PM +1000, Cian Barclay wrote: which is usable both for Catalyst and something else? How do you get resultsets inside the model which could either be from the Catalyst model, or from the