lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
public function getPrimaryKeyDeclarationSQL(Index $index, $name = null)
    {
        if (! $index->isPrimary()) {
            throw new InvalidArgumentException(
                'Can only create primary key declarations with getPrimaryKeyDeclarationSQL()'
            );
        }

        return $this->getTableConstraintDeclarationSQL($index, $name);
    }
public function getPrimaryKeyDeclarationSQL(Index $index, $name = null)
    {
        if (! $index->isPrimary()) {
            throw new InvalidArgumentException(
                'Can only create primary key declarations with getPrimaryKeyDeclarationSQL()'
            );
        }

        return $this->getTableConstraintDeclarationSQL($index, $name);
    }
public function getPrimaryKeyDeclarationSQL ( Index $ index , $ name = null ) { if ( ! $ index -> isPrimary ( ) ) { throw new InvalidArgumentException ( 'Can only create primary key declarations with getPrimaryKeyDeclarationSQL()' ) ; } return $ this -> getTableConstraintDeclarationSQL ( $ index , $ name ) ; }
Obtain DBMS specific SQL code portion needed to set a primary key
declaration to be used in statements like ALTER TABLE.

@param Index  $index Index definition
@param string $name  Name of the primary key

@return string DBMS specific SQL code portion needed to set a primary key

@throws InvalidArgumentException If the given index is not a primary key.
Obtain DBMS specific SQL code portion needed to set a primary key declaration to be used in statements like ALTER TABLE .