Thanks for the help. With your suggestion I managed to track down what was
going on. The error I was seeing was coming from a unit test that I wrote
using a mocked application (that someone else wrote). It turns out that the
$c->model method was being mocked and it would only return result sets. I love
testing...
So, yes, $c->model('kRadDB')->schema does work like it's supposed to.
-Jason
On 5/25/07 2:16 PM, "Evaldas Imbrasas" <[EMAIL PROTECTED]> wrote:
Try this:
$c->model('kRadDB')->result_source->schema
On 5/25/07, Jason Konrad <[EMAIL PROTECTED]> wrote:
> This does accomplish what I was trying to do but aren't there some
> connections around that I could use rather than manually connecting each
> time I need to do this transaction?
>
> $c->model('kRadDB')->schema
>
> I get this error " Can't call method "schema" without a package or object
> reference"
--
-----------------------------------------------------
Evaldas Imbrasas
http://www.imbrasas.com
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/