public static function getNameForeignKey($tableName, $tableNameRelated, $fieldName, $fieldNameRelated, $wordWrap = false)
    {
        return is_bool($wordWrap) ? 'fk_' . self::prepStr($tableName) . '_' . self::prepStr($fieldName) . '_' . self::prepStr($tableNameRelated) . '_' . self::prepStr($fieldNameRelated)
            : self::prepStr('fk_' . $tableName . '_' . $fieldName . '_' . $tableNameRelated . '_' . $fieldNameRelated, $wordWrap);
    }
public static function getNameForeignKey($tableName, $tableNameRelated, $fieldName, $fieldNameRelated, $wordWrap = false)
    {
        return is_bool($wordWrap) ? 'fk_' . self::prepStr($tableName) . '_' . self::prepStr($fieldName) . '_' . self::prepStr($tableNameRelated) . '_' . self::prepStr($fieldNameRelated)
            : self::prepStr('fk_' . $tableName . '_' . $fieldName . '_' . $tableNameRelated . '_' . $fieldNameRelated, $wordWrap);
    }
public static function getNameForeignKey ( $ tableName , $ tableNameRelated , $ fieldName , $ fieldNameRelated , $ wordWrap = false ) { return is_bool ( $ wordWrap ) ? 'fk_' . self :: prepStr ( $ tableName ) . '_' . self :: prepStr ( $ fieldName ) . '_' . self :: prepStr ( $ tableNameRelated ) . '_' . self :: prepStr ( $ fieldNameRelated ) : self :: prepStr ( 'fk_' . $ tableName . '_' . $ fieldName . '_' . $ tableNameRelated . '_' . $ fieldNameRelated , $ wordWrap ) ; }
Auto generate next foreign key name
@param string $tableName Source table name
@param string $tableNameRelated Related table name
@param string $fieldName Field name source
@param string $fieldNameRelated related field name
@return string
Auto generate next foreign key name