[Catalyst] Doing work inside the DBIx::Class model
Cian Barclay
cianbarclay at gmail.com
Wed Feb 20 03:32:26 GMT 2008
On Feb 20, 2008 1:18 PM, Toby Corkindale <tjc at wintrmute.net> 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 database connection if Catalyst wasn't
> > being used?
>
> I think you're looking for the $self->resultsource->schema method, inside
> your
> Model?
>
I don't have one of those, do you mean $self->_source_handle->schema? Is
it okay to use with the leading underscore?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080220/5ce1a=
1dd/attachment.htm
More information about the Catalyst
mailing list