コード例 #1
0
 public static function create($conn = null, $class = null)
 {
     $q = new InvoiceQuery($conn);
     $q->from('Invoice i')->orderBy('i.issue_date desc, i.number desc');
     $q->_model = 'Invoice';
     return $q;
 }