original_string: public static function getPrimaryKeyOfTable($tableName)
      {
          $schema = DB::getDoctrineSchemaManager();
          $column = $schema->listTableDetails($tableName)->getPrimaryKey();
  
          return $column ? $column->getColumns()[0] : '';
      }
code: public static function getPrimaryKeyOfTable($tableName)
      {
          $schema = DB::getDoctrineSchemaManager();
          $column = $schema->listTableDetails($tableName)->getPrimaryKey();
  
          return $column ? $column->getColumns()[0] : '';
      }
code_tokens: public static function getPrimaryKeyOfTable ( $ tableName ) { $ schema = DB :: getDoctrineSchemaManager ( ) ; $ column = $ schema -> listTableDetails ( $ tableName ) -> getPrimaryKey ( ) ; return $ column ? $ column -> getColumns ( ) [ 0 ] : '' ; }
docstring: Get primary key of given table.
  
  @param string $tableName
  
  @return string|null The column name of the (simple) primary key
docstring_tokens: Get primary key of given table .