Skip to content

Commit

Permalink
fix: remove retype to string for DateTime objects
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalousek committed Oct 20, 2023
1 parent 5fa6131 commit e31e886
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/QueryObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,10 @@ function($_column) use ($qb, $value, $mode) {

switch ($mode) {
case QueryObjectByMode::STRICT:
$value = "$value";
$condition = "$_column = :$paramName";
break;

case QueryObjectByMode::NOT_EQUAL:
$value = "$value";
$condition = "$_column != :$paramName";
break;

Expand Down Expand Up @@ -256,22 +254,18 @@ function($_column) use ($qb, $value, $mode) {
break;

case QueryObjectByMode::GREATER:
$value = "$value";
$condition = "$_column > :$paramName";
break;

case QueryObjectByMode::GREATER_OR_EQUAL:
$value = "$value";
$condition = "$_column >= :$paramName";
break;

case QueryObjectByMode::LESS:
$value = "$value";
$condition = "$_column < :$paramName";
break;

case QueryObjectByMode::LESS_OR_EQUAL:
$value = "$value";
$condition = "$_column <= :$paramName";
break;

Expand Down

0 comments on commit e31e886

Please sign in to comment.