Actually there is an error that can’t be displayed for some reason. Can you please try to display all errors and see if this will show it? If you still can’t show the error maybe to share with us the function with the setRelation that you use?
Unfortunately I can’t reproduce the issue. Can you please try to show the errors so we can see what error occurs into your end? What framework are you using? Maybe I can help you out with this. Seems that there is a fatal error somewhere. Also what PHP version are you using?
Can you insert a new record from an admin screen? For example from phpPgAdmin? == yes, i already tried this by inserting record through admin and from admin the record gets inserted correctly.