Added an option for has_one relation

Added the option ‘with_key’ for has_one relation so that it doesn’t
forcefully use the column ‘id’ to make the join but  custom column.