[Catalyst] List/Scalar Context with TT + DBIC

Christopher H. Laco claco at chrislaco.com
Thu Jun 1 18:41:47 CEST 2006


Aran Deltac wrote:
> On 5/31/06, phaylon <phaylon at dunkelheit.at> wrote:
>> Mark Blythe said:
>>> How can I force scalar context from TT in order to get a DBIC
>>> ResultSet object back from search() rather than a list of rows?  For
>>> instance:
>> IIRC there'll be a search_rs method (have a look at the ResultSet docs of
>> the latest dev release of DBIC) that always returns a result set.
> 
> Phaylon is right - I wrote the search_rs() method for exactly the
> problem that was originally expressed in this thread.  Check it out.
> 
> Aran
> 
>> hth, p

Ha ha. Since I'm migrating to DBIC using current, I guess I can ditch my
workaround and use search_rs. :-)

-=Chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060601/678925f1/attachment.pgp 


More information about the Catalyst mailing list