KevinTheJedi
I have a related question regarding query annotations. e.g.
return $query->annotate(array(
'myfield' => (SqlCase::N()
->when(array('tablefieldgt'=>'my value'), 0)
->otherwise(1)
),
));
When table field is greater than 'my value' is easily specified with a text field using 'gt'.
I am having a hard time specifying 'greater than' with regards to SqlFunction::timestampdiff.
Here is my SqlFunction::timestampdiff(new SqlCode('SECOND'), new SqlField('tablefield'), SqlFunction::NOW()).
I want to modify the annotation to include a 'when' my SqlFunction::timestampdiff 'greater than' 'my value'.
How would I do that?