[Dbix-class] ResultSet columns attribute broken?
Justin Hunter
justin.d.hunter at gmail.com
Tue Apr 28 20:22:53 GMT 2009
can you try svn trunk?
(http://dev.catalyst.perl.org/repos/bast/DBIx-Class/0.08/trunk/)
Justin
Bernhard Graf wrote:
> After upgrading to 0.08100 some of my DBIC code showed error messages
> similar to what was discussed in
> http://n2.nabble.com/DBIx::Class-0.08100-released-to-CPAN-td2659408.html
>
> The only difference: It happened with search().
>
> It turned out, that the following doesn't work anymore:
>
> (modified from t/76select.t)
>
> my @cds = $schema->resultset('CD')->search({},
> {
> 'join' => 'artist',
> 'columns' => ['me.cdid','me.title','artist.name'],
> }
> );
>
> DBIx::Class::ResultSet::search(): Column artist not loaded or not passed
> to new() prior to insert() on DBICTest::CD=HASH(0x199d820) trying to
> resolve relationship (maybe you forgot to call ->reload_from_storage to
> get defaults from the db) at t/76select.t line 13
>
> whereas this works:
>
> my @cds = $schema->resultset('CD')->search({},
> {
> 'join' => 'artist',
> '+columns' => ['artist.name'],
> }
> );
>
>
>
>
> Bernhard Graf
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>
More information about the DBIx-Class
mailing list