protected <F> ForeignKey<F> createForeignKey(Path<?> local, String foreign) {
        ForeignKey<F> foreignKey = new ForeignKey<F>(this, local, foreign);
        foreignKeys.add(foreignKey);
        return foreignKey;
    }
{@code RelationalPathBase} is a base class for {@link RelationalPath} implementations

@author tiwe

@param <T>
           entity type
querydsl-sql/src/main/java/com/querydsl/sql/RelationalPathBase.java