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