Re: Searches via might-have

[prev] [thread] [next] [Date index for 2004/06/15]

From: Tony Bowden
Subject: Re: Searches via might-have
Date: 10:37 on 15 Jun 2004
On Tue, Jun 15, 2004 at 11:24:43AM +0100, Simon Cozens wrote:
> What I'd now like to do is call something on MyApp::Food (preferably) to
> search for best before dates between X and Y. Is this possible, or do
> I have to do the search on MyApp::Date and map them back to ->food?

To do that generically would probably involve writing some pretty hairy SQL, 
so I think your best bet is to add a search_by_date or somesuch on
MyApp::Food that runs the search on MyApp::Date and maps the results back.

Tony

Searches via might-have
Simon Cozens 10:24 on 15 Jun 2004

Re: Searches via might-have
Tony Bowden 10:37 on 15 Jun 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52