original_string: protected function find($id = null)
  	{
  		$query = $this->query();
  		$query->where('id', $id);
  
  		if (is_null($id) or is_null($model = $query->get_one()))
  		{
  			throw new \HttpNotFoundException();
  		}
  
  		return $model;
  	}
code: protected function find($id = null)
  	{
  		$query = $this->query();
  		$query->where('id', $id);
  
  		if (is_null($id) or is_null($model = $query->get_one()))
  		{
  			throw new \HttpNotFoundException();
  		}
  
  		return $model;
  	}
code_tokens: protected function find ( $ id = null ) { $ query = $ this -> query ( ) ; $ query -> where ( 'id' , $ id ) ; if ( is_null ( $ id ) or is_null ( $ model = $ query -> get_one ( ) ) ) { throw new \ HttpNotFoundException ( ) ; } return $ model ; }
docstring: Finds an entity of model
  
  @param integer $id
  
  @return Model
docstring_tokens: Finds an entity of model