[Catalyst] Getting DBIC schema from outside Catalyst?
Dr. Jennifer Nussbaum
bg271828 at yahoo.com
Thu Mar 9 17:34:45 GMT 2017
Thank you! This is very simple and enormously helpful.
From: Eden Cardim <edencardim at gmail.com>
To: The elegant MVC web framework <catalyst at lists.scsys.co.uk>
Sent: Thursday, March 9, 2017 7:16 AM
Subject: Re: [Catalyst] Getting DBIC schema from outside Catalyst?
If you want to reuse the configuration from MyApp:
my $schema = MyApp->model('DBICModelName')->schema;
You may need to adjust @INC accordingly, etc.
List: Catalyst at lists.scsys.co.uk
Searchable archive: http://email@example.com/
Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Catalyst