setOrder() 공개 메소드

Set order for model records. Multiple calls.
public setOrder ( mixed $field, boolean | null $desc = null )
$field mixed
$desc boolean | null
예제 #1
0
파일: IteratorTest.php 프로젝트: atk4/data
 /**
  * If first argument is array, then second argument should not be used.
  *
  * @expectedException Exception
  */
 public function testException1()
 {
     $m = new Model();
     $m->addFields(['name', 'salary']);
     $m->setOrder(['name', 'salary'], 'desc');
 }