示例#1
0
 public function find($id)
 {
     $item = $this->query->where($this->model->getPrimary(), '=', $id)->first();
     if ($item !== null) {
         return $this->createInstance($item);
     }
     return null;
 }
示例#2
0
 /**
  * @expectedException \Pixie\Exception
  * @expectedExceptionCode 3
  */
 public function testTableNotSpecifiedException()
 {
     $this->builder->where('a', 'b')->get();
 }