/** * Restricción: Entremedio de valores * <br> $valor_menor < $field < $valor_mayor * @param string $field * @param string $valor * @return string $stringRestriction */ public static function between($field, $valor_menor, $valor_mayor) { $restrictions = Restrictions::instance(); $restrictions->expr = Restrictions::gt($field, $valor_menor)->getExpr() . " AND " . Restrictions::lt($field, $valor_mayor)->getExpr(); return $restrictions; }