original_string: protected static function doDelete($id)
      {
          $model = self::createModelInstance();
          $tableName = $model->getTableName($model->className);
  
          $connection = Connection::connect();
  
          $delete = $connection->prepare('delete from '.$tableName.' where id ='.$id);
          return $delete->execute() ? 'deleted successfully' : 'Row not deleted';
  
           
      }
code: protected static function doDelete($id)
      {
          $model = self::createModelInstance();
          $tableName = $model->getTableName($model->className);
  
          $connection = Connection::connect();
  
          $delete = $connection->prepare('delete from '.$tableName.' where id ='.$id);
          return $delete->execute() ? 'deleted successfully' : 'Row not deleted';
  
           
      }
code_tokens: protected static function doDelete ( $ id ) { $ model = self :: createModelInstance ( ) ; $ tableName = $ model -> getTableName ( $ model -> className ) ; $ connection = Connection :: connect ( ) ; $ delete = $ connection -> prepare ( 'delete from ' . $ tableName . ' where id =' . $ id ) ; return $ delete -> execute ( ) ? 'deleted successfully' : 'Row not deleted' ; }
docstring: Delete an existing row from the database
  
  @param $id
  @return string
docstring_tokens: Delete an existing row from the database