Example #1
0
 /**
  * Add a date constraint to the query object
  *
  * @param $field
  * @param ValueExpression $valueExpression
  **/
 protected function parseDate($field, ValueExpression $valueExpression)
 {
     // check if we already have a snake case field name
     if (strpos($field, '_') <= 0) {
         $field = snake_case($field);
     }
     $this->query->where($field, $valueExpression->getExpression(), $valueExpression->getValue()->toDateTimeString());
 }