lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
public function createConstraint(Constraint $constraint, $table)
    {
        $this->_execSql($this->_platform->getCreateConstraintSQL($constraint, $table));
    }
public function createConstraint(Constraint $constraint, $table)
    {
        $this->_execSql($this->_platform->getCreateConstraintSQL($constraint, $table));
    }
public function createConstraint ( Constraint $ constraint , $ table ) { $ this -> _execSql ( $ this -> _platform -> getCreateConstraintSQL ( $ constraint , $ table ) ) ; }
Creates a constraint on a table.

@param Table|string $table

@return void
Creates a constraint on a table .