Skip to content

Commit 33739f9

Browse files
committed
fix orWhereDate
1 parent e5042e1 commit 33739f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Illuminate/Database/Query/Builder.php

+8
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,10 @@ public function whereDate($column, $operator, $value = null, $boolean = 'and')
989989
*/
990990
public function orWhereDate($column, $operator, $value)
991991
{
992+
list($value, $operator) = $this->prepareValueAndOperator(
993+
$value, $operator, func_num_args() == 2
994+
);
995+
992996
return $this->whereDate($column, $operator, $value, 'or');
993997
}
994998

@@ -1020,6 +1024,10 @@ public function whereTime($column, $operator, $value = null, $boolean = 'and')
10201024
*/
10211025
public function orWhereTime($column, $operator, $value = null)
10221026
{
1027+
list($value, $operator) = $this->prepareValueAndOperator(
1028+
$value, $operator, func_num_args() == 2
1029+
);
1030+
10231031
return $this->whereTime($column, $operator, $value, 'or');
10241032
}
10251033

0 commit comments

Comments
 (0)