On Fri, Jun 22, 2007 at 08:42:46AM +1000, Charlie Garrison wrote:
> Good morning,
> 
> For one of my classes I want to extend the 'find' method so that 
> only records belonging to current user will be found. I could 
> use 'search' and compose the query, but I would prefer to keep 
> semantics of 'find' (cleaner code and all that).

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

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to