YII2 find value from db between a range

YII2 find value from db between a range

$match_batches=Batches::find()
->andFilterWhere(
[
'>','start_date', $temp_date_range_start
]
)
->
andFilterWhere(
[
'<','end_date', $temp_date_range_end
]
)->one();

Leave a comment

Your email address will not be published. Required fields are marked *