I need to find row where summ>=250
I am doing following:
$criteria = new CDbCriteria;
$criteria->condition ='summ >= 250';
$winnerBid = Bids::model()->find($criteria);
But I am getting no results. How to implement?
I dont have Yii at hand. Have you tried this:
$criteria = new CDbCriteria;
$criteria->addCondition('summ >= 250');
$winnerBid = Bids::model()->find($criteria);
This should work, if summ
is a column mapped correctly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With