lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
public function getDefaultConstraintDeclarationSQL($table, array $column)
    {
        if (! isset($column['default'])) {
            throw new InvalidArgumentException("Incomplete column definition. 'default' required.");
        }

        $columnName = new Identifier($column['name']);

        return ' CONSTRAINT ' .
            $this->generateDefaultConstraintName($table, $column['name']) .
            $this->getDefaultValueDeclarationSQL($column) .
            ' FOR ' . $columnName->getQuotedName($this);
    }
public function getDefaultConstraintDeclarationSQL($table, array $column)
    {
        if (! isset($column['default'])) {
            throw new InvalidArgumentException("Incomplete column definition. 'default' required.");
        }

        $columnName = new Identifier($column['name']);

        return ' CONSTRAINT ' .
            $this->generateDefaultConstraintName($table, $column['name']) .
            $this->getDefaultValueDeclarationSQL($column) .
            ' FOR ' . $columnName->getQuotedName($this);
    }
public function getDefaultConstraintDeclarationSQL ( $ table , array $ column ) { if ( ! isset ( $ column [ 'default' ] ) ) { throw new InvalidArgumentException ( "Incomplete column definition. 'default' required." ) ; } $ columnName = new Identifier ( $ column [ 'name' ] ) ; return ' CONSTRAINT ' . $ this -> generateDefaultConstraintName ( $ table , $ column [ 'name' ] ) . $ this -> getDefaultValueDeclarationSQL ( $ column ) . ' FOR ' . $ columnName -> getQuotedName ( $ this ) ; }
Returns the SQL snippet for declaring a default constraint.

@param string  $table  Name of the table to return the default constraint declaration for.
@param mixed[] $column Column definition.

@return string

@throws InvalidArgumentException
Returns the SQL snippet for declaring a default constraint .