original_string: protected static function selectOne($model, $tableName, $id)
      {
          $connection = Connection::connect();
  
          $getAll = $connection->prepare('select * from '.$tableName.' where id='.$id);
          $getAll->execute();
  
          $row = $getAll->fetch(PDO::FETCH_ASSOC);
          array_push($model->resultRows, $row);
          
          return $model;
      }
code: protected static function selectOne($model, $tableName, $id)
      {
          $connection = Connection::connect();
  
          $getAll = $connection->prepare('select * from '.$tableName.' where id='.$id);
          $getAll->execute();
  
          $row = $getAll->fetch(PDO::FETCH_ASSOC);
          array_push($model->resultRows, $row);
          
          return $model;
      }
code_tokens: protected static function selectOne ( $ model , $ tableName , $ id ) { $ connection = Connection :: connect ( ) ; $ getAll = $ connection -> prepare ( 'select * from ' . $ tableName . ' where id=' . $ id ) ; $ getAll -> execute ( ) ; $ row = $ getAll -> fetch ( PDO :: FETCH_ASSOC ) ; array_push ( $ model -> resultRows , $ row ) ; return $ model ; }
docstring: Search database for one row
  
  @param $model
  @param $tableName
  @param $id
  @return mixed
docstring_tokens: Search database for one row