[Catalyst] auth::DBIC & session problems

Brandon Black blblack at gmail.com
Tue Aug 15 20:49:48 CEST 2006


On 8/15/06, leonard.a.jaffe at jpmchase.com <leonard.a.jaffe at jpmchase.com>
wrote:

> I looked at that code.  My table is called user, but that difference is
> minor.
> I think the biggest difference is that I'm using DBIC::Schema::Loader.
> Is there a way use that?
>


It should work with Schema::Loader just as well.  You'd just have to define
the inflate/deflate stuff manually, as in:

MySchema.pm:

package MySchema;
use base qw/DBIx::Class::Schema::Loader/;
__PACKAGE_->loader_options( relationships => 1 );
1;

MySchema/User.pm
package MySchema::User;
__PACKAGE__->inflate_column( .... ); # use the col name the loader finds
1;

-- Brandon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060815/5cc9f2e2/attachment.htm 


More information about the Catalyst mailing list