lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
public function dropAndCreateConstraint(Constraint $constraint, $table)
    {
        $this->tryMethod('dropConstraint', $constraint, $table);
        $this->createConstraint($constraint, $table);
    }
public function dropAndCreateConstraint(Constraint $constraint, $table)
    {
        $this->tryMethod('dropConstraint', $constraint, $table);
        $this->createConstraint($constraint, $table);
    }
public function dropAndCreateConstraint ( Constraint $ constraint , $ table ) { $ this -> tryMethod ( 'dropConstraint' , $ constraint , $ table ) ; $ this -> createConstraint ( $ constraint , $ table ) ; }
Drops and creates a constraint.

@see dropConstraint()
@see createConstraint()

@param Table|string $table

@return void
Drops and creates a constraint .