I am having the same issue. Database is MySQL.
Details: I have the parent/child tables with foreign key on child table referencing parent tables primary key and foreign key is non nullable. I am able to insert the record in the parent table with out any issues. But fails on Child table telling 'Foreign_key_column_name' cannot be null.
Please help.