When you create the Logs entity you need to set the association to Complaints as well (you only set the attributes in the last screenshot, not the association).
Also: your create action does a commit, and then you do a commit action. The commit action is redundant, because you selected commit on the create action