lundi 12 janvier 2015

YII 2.0 select last record in the table


Vote count:

0




How to select last (latest) record (that is having MAX(id)) from the table in YII 2.0 (not 1.1)?


Next statement works OK, but selects the first record


$statistics = SystemStatisticsHistory::findOne(1);



asked 3 mins ago







YII 2.0 select last record in the table

Aucun commentaire:

Enregistrer un commentaire