Hi!
For your first question: you can get the query object by dumping the
return value of the getConditions() method:
var_dump(json_encode($criteria->getConditions()));
You second: you should make shure, that you always submit the correct
type to the criteria object, eg:
$criteria->creation_date('<=', $to_date === null ? time() : (int)$to_date);
--
Nagy Attila Gabor