Skip to content

Commit

Permalink
Merge pull request #29 from vpalousek98/master
Browse files Browse the repository at this point in the history
fix: remove retype to string for DateTime objects
  • Loading branch information
thorewi authored Oct 20, 2023
2 parents ea21d96 + e31e886 commit 75a4d72
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 75a4d72

Please sign in to comment.