[Dbix-class] Extending 'find' to include constant value for
search query
Matt S Trout
dbix-class at trout.me.uk
Fri Jun 22 01:00:51 GMT 2007
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/
More information about the Dbix-class
mailing list