[Dbix-class] I can't use two own components that use ResultSetManager.

atsushi kobayashi nekokak at gmail.com
Fri Mar 17 10:27:12 CET 2006


Hi.

> I've checked in a change in the DBIx-Class-current branch in the
> repository that may resolve the issue for you. Please let me know.

I tried DBIx-Class-current branch.
However, there was no change.

The attribute is not found in bar method.

The library that I wrote is for your information appended.
One is a library made from the sample.

The sample script is such:

package DBIC::Schema::Test;
use strict;
__PACKAGE__->load_components(qw/MD5Columns DigestColumns
PK::Auto::SQLite Core/);
....
__PACKAGE__->md5_columns(qw/name/);
__PACKAGE__->digest_columns(qw/name/);
__PACKAGE__->set_digest_type('MD5');
1;


#! /usr/bin/perl
use strict;
use DBIC::Schema;
my $schema = DBIC::Schema->connect('dbi:SQLite:.....');
my $n = $schema->resultset('Test');
my $it;
$it = $n->md5_search({id => 1})->first; # ok

$it = $n->digest_search({id => 1})->first; # not ok


Thanks!

 atsushi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DigestColumns.pm
Type: application/octet-stream
Size: 3890 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20060317/2df8926a/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MD5Columns.pm
Type: application/octet-stream
Size: 2329 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20060317/2df8926a/attachment-0003.obj 


More information about the Dbix-class mailing list