[Dbix-class] Complex query in custom resultsource file.
Matt S Trout
dbix-class at trout.me.uk
Sat Feb 23 18:19:48 GMT 2008
On Wed, Feb 20, 2008 at 01:11:32AM +0000, edwrb . wrote:
>
> Thanks Jon! I totally didn't even notice that.
> I removed those brackets around the $rs, but I still seem to be getting this error:
>
> Error: Can't locate object method "thumbnail"
>
> When iterating through the resultset of a custom resultsource file, can you use
> the columns as methods as you can with regular resultsource iterations?
I don't see an add_columns call anywhere - if you don't tell DBIC about
the columns, it won't know to create accessors for them ...
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the DBIx-Class
mailing list