示例#1
0
 function latest()
 {
     $Revision = new mBlogPostRevision();
     $Revision->related($this);
     $Revision->db->limit(1)->order_by('blogpostrevision_id', 'desc')->select($Revision->_table() . '.*');
     return $Revision->get()[0];
 }