Quantcast
Viewing all articles
Browse latest Browse all 60

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();

Viewing all articles
Browse latest Browse all 60

Trending Articles