[Dbix-class] Extending 'find' to include constant value for search query

Charlie Garrison garrison at zeta.org.au
Sat Jun 23 00:46:06 GMT 2007


Good morning,

On 22/6/07 at 1:00 AM +0100, Matt S Trout 
<dbix-class at trout.me.uk> wrote:

>The return of search() in scalar context is a resultset object that further
>calls can be chained from, just call find() on that ...

Not really what I was looking for, but the end result is clean & 
tidy. Thanks for the suggestion. I made a ResultSet method which 
does a search() using constant value, and then find() chains off 
that. Perfect.

Thanks,
Charlie

-- 
    Charlie Garrison  <garrison at zeta.org.au>
    PO Box 141, Windsor, NSW 2756, Australia

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
http://www.ietf.org/rfc/rfc1855.txt



More information about the Dbix-class mailing list