protected function _foreignOnClause($on)
    {
        if ($on === TableSchema::ACTION_SET_NULL) {
            return 'SET NULL';
        }
        if ($on === TableSchema::ACTION_SET_DEFAULT) {
            return 'SET DEFAULT';
        }
        if ($on === TableSchema::ACTION_CASCADE) {
            return 'CASCADE';
        }
        if ($on === TableSchema::ACTION_RESTRICT) {
            return 'RESTRICT';
        }
        if ($on === TableSchema::ACTION_NO_ACTION) {
            return 'NO ACTION';
        }
    }
protected function _foreignOnClause($on)
    {
        if ($on === TableSchema::ACTION_SET_NULL) {
            return 'SET NULL';
        }
        if ($on === TableSchema::ACTION_SET_DEFAULT) {
            return 'SET DEFAULT';
        }
        if ($on === TableSchema::ACTION_CASCADE) {
            return 'CASCADE';
        }
        if ($on === TableSchema::ACTION_RESTRICT) {
            return 'RESTRICT';
        }
        if ($on === TableSchema::ACTION_NO_ACTION) {
            return 'NO ACTION';
        }
    }
protected function _foreignOnClause ( $ on ) { if ( $ on === TableSchema :: ACTION_SET_NULL ) { return 'SET NULL' ; } if ( $ on === TableSchema :: ACTION_SET_DEFAULT ) { return 'SET DEFAULT' ; } if ( $ on === TableSchema :: ACTION_CASCADE ) { return 'CASCADE' ; } if ( $ on === TableSchema :: ACTION_RESTRICT ) { return 'RESTRICT' ; } if ( $ on === TableSchema :: ACTION_NO_ACTION ) { return 'NO ACTION' ; } }
Generate an ON clause for a foreign key.

@param string|null $on The on clause
@return string
Generate an ON clause for a foreign key .