getForeignKey function doesn't work correct

BUG FIX : Get the primaryKey from the foreign model instead of the primaryKey from current model 

Only applies to BelongsTo relation