renamed idField to foreignKeyField, renamed idValue to foreignKeyValue