I am making a HR portal and when im saving an employe image in form its not saving in database what will be the issue here my oml please review it.
Hi Muhammad,
In your implementation, you omitted the step of assigning the value of the EmployeeImg.Id attribute with the newly created CreateEmployeeProfile.Id.
To establish the one-to-one record association correctly (in-between EmployeeProfile - EmployeeImg entities), it's necessary to explicitly set the EmployeeImg.Id attribute with the ID of the newly created parent EmployeeProfile record as shown below.
In addition, to follow best practices, ensure that you address all the TrueChange warnings.
Refer to the attached oml file. I hope this helps you!
Kind regards,
Benjith Sam
thanks alot
You're welcome. I'm glad it helped you :)