lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
public function getAdvancedForeignKeyOptionsSQL(ForeignKeyConstraint $foreignKey)
    {
        $query = '';
        if ($this->supportsForeignKeyOnUpdate() && $foreignKey->hasOption('onUpdate')) {
            $query .= ' ON UPDATE ' . $this->getForeignKeyReferentialActionSQL($foreignKey->getOption('onUpdate'));
        }
        if ($foreignKey->hasOption('onDelete')) {
            $query .= ' ON DELETE ' . $this->getForeignKeyReferentialActionSQL($foreignKey->getOption('onDelete'));
        }

        return $query;
    }
public function getAdvancedForeignKeyOptionsSQL(ForeignKeyConstraint $foreignKey)
    {
        $query = '';
        if ($this->supportsForeignKeyOnUpdate() && $foreignKey->hasOption('onUpdate')) {
            $query .= ' ON UPDATE ' . $this->getForeignKeyReferentialActionSQL($foreignKey->getOption('onUpdate'));
        }
        if ($foreignKey->hasOption('onDelete')) {
            $query .= ' ON DELETE ' . $this->getForeignKeyReferentialActionSQL($foreignKey->getOption('onDelete'));
        }

        return $query;
    }
public function getAdvancedForeignKeyOptionsSQL ( ForeignKeyConstraint $ foreignKey ) { $ query = '' ; if ( $ this -> supportsForeignKeyOnUpdate ( ) && $ foreignKey -> hasOption ( 'onUpdate' ) ) { $ query .= ' ON UPDATE ' . $ this -> getForeignKeyReferentialActionSQL ( $ foreignKey -> getOption ( 'onUpdate' ) ) ; } if ( $ foreignKey -> hasOption ( 'onDelete' ) ) { $ query .= ' ON DELETE ' . $ this -> getForeignKeyReferentialActionSQL ( $ foreignKey -> getOption ( 'onDelete' ) ) ; } return $ query ; }
Returns the FOREIGN KEY query section dealing with non-standard options
as MATCH, INITIALLY DEFERRED, ON UPDATE, ...

@param ForeignKeyConstraint $foreignKey The foreign key definition.

@return string
Returns the FOREIGN KEY query section dealing with non - standard options as MATCH INITIALLY DEFERRED ON UPDATE ...