Bar.created' >= (NOW() - interval '7 days')"
> )
>
> On Aug 19, 6:23 am, Elmo wrote:
>
>
>
> > I would like to use the built in database date/time functions as part
> > of a 'conditions'. How is this done?
>
> > i.e.: sel
or...
'conditions'=>array(
"Bar.created' >= (NOW() - interval '7 days')"
)
On Aug 19, 6:23 am, Elmo wrote:
> I would like to use the built in database date/time functions as part
> of a 'conditions'. How is this done?
>
>
move sql operator to the left:
conditions'=>array('Bar.created >=' => "(NOW() - interval '7
days')")
On Aug 19, 7:23 am, Elmo wrote:
> I would like to use the built in database date/time functions as part
> of a 'conditions'. H
I would like to use the built in database date/time functions as part
of a 'conditions'. How is this done?
i.e.: select foo from bar where created >= (NOW() - interval '7
days');
I tried: 'conditions'=>array('Bar.created' =&