original_string: public function get_one()
  	{
  		// save the current limits
  		$limit = $this->limit;
  		$rows_limit = $this->rows_limit;
  
  		if ($this->rows_limit !== null)
  		{
  			$this->limit = null;
  			$this->rows_limit = 1;
  		}
  		else
  		{
  			$this->limit = 1;
  			$this->rows_limit = null;
  		}
  
  		// get the result using normal find
  		$result = $this->get();
  
  		// put back the old limits
  		$this->limit = $limit;
  		$this->rows_limit = $rows_limit;
  
  		return $result ? reset($result) : null;
  	}
code: public function get_one()
  	{
  		// save the current limits
  		$limit = $this->limit;
  		$rows_limit = $this->rows_limit;
  
  		if ($this->rows_limit !== null)
  		{
  			$this->limit = null;
  			$this->rows_limit = 1;
  		}
  		else
  		{
  			$this->limit = 1;
  			$this->rows_limit = null;
  		}
  
  		// get the result using normal find
  		$result = $this->get();
  
  		// put back the old limits
  		$this->limit = $limit;
  		$this->rows_limit = $rows_limit;
  
  		return $result ? reset($result) : null;
  	}
code_tokens: public function get_one ( ) { // save the current limits $ limit = $ this -> limit ; $ rows_limit = $ this -> rows_limit ; if ( $ this -> rows_limit !== null ) { $ this -> limit = null ; $ this -> rows_limit = 1 ; } else { $ this -> limit = 1 ; $ this -> rows_limit = null ; } // get the result using normal find $ result = $ this -> get ( ) ; // put back the old limits $ this -> limit = $ limit ; $ this -> rows_limit = $ rows_limit ; return $ result ? reset ( $ result ) : null ; }
docstring: Build the query and return single object hydrated
  
  @return  Model
docstring_tokens: Build the query and return single object hydrated