original_string: public function get($id, $ignore_cache = false){
          if( empty($this->primary_key) ){
              return null;
          }
          $row = $this->where("{$this->table}.{$this->primary_key} = %d", $id)->get_row('', $ignore_cache);
          if( $row && $this->result_class ){
              return new $this->result_class($row);
          }else{
              return $row;
          }
      }
code: public function get($id, $ignore_cache = false){
          if( empty($this->primary_key) ){
              return null;
          }
          $row = $this->where("{$this->table}.{$this->primary_key} = %d", $id)->get_row('', $ignore_cache);
          if( $row && $this->result_class ){
              return new $this->result_class($row);
          }else{
              return $row;
          }
      }
code_tokens: public function get ( $ id , $ ignore_cache = false ) { if ( empty ( $ this -> primary_key ) ) { return null ; } $ row = $ this -> where ( "{$this->table}.{$this->primary_key} = %d" , $ id ) -> get_row ( '' , $ ignore_cache ) ; if ( $ row && $ this -> result_class ) { return new $ this -> result_class ( $ row ) ; } else { return $ row ; } }
docstring: Get object with primary key
  
  @param int $id
  @param bool $ignore_cache
  @return mixed|null
docstring_tokens: Get object with primary key