Skip to content

Commit 7eb5570

Browse files
author
David Nahodyl
committed
added wheredate
1 parent b94e4f3 commit 7eb5570

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Database/Query/FMBaseBuilder.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,4 +719,14 @@ public function count($columns = '*')
719719
return (int)$count;
720720
}
721721

722+
public function whereDate($column, $operator, $value = null, $boolean = 'and')
723+
{
724+
725+
if ($operator instanceof DateTimeInterface) {
726+
$operator = $operator->format('n/j/Y');
727+
}
728+
729+
return $this->where($column, $operator, $value, $boolean);
730+
}
731+
722732
}

0 commit comments

Comments
 (0)